• Z
    monitor: put mainargs at &pmem[0] to fix difftest bug · 5e251b15
    Zihao Yu 提交于
    * If we put mainargs at a device, x86 may directly use it to perform
      computation, such as cmp (%eax), 0, where %eax points to the device.
      But the monitor will skip every instruction accessing device, which
      makes REF skip generating correct EFLAGS.
    * Putting mainargs at RAM solves this issue.
    5e251b15
device.c 1.8 KB