assigning vms on the viewport

This commit is contained in:
minjaesong
2022-12-14 03:51:46 +09:00
parent ba0380db6c
commit 86af873bdf
3 changed files with 115 additions and 45 deletions

View File

@@ -65,6 +65,8 @@ class VM(
private val mallocSizes = HashMap<Int, Int>() // HashMap<Block Index, Block Count>
var allocatedBlockCount = 0; private set
val isRunning: Boolean
get() = !disposed &&startTime >= 0
init {
println("[VM] Creating new VM with ID of $id, memsize $memsize")