[gem5-users] Re: Shutdown x86 Full System simulation

2021-03-11 Thread Deepak Mohan via gem5-users
Thanks Gabe. It worked. Using the following inline assembly from my OS C code shuts down the full system simulator. (We have to emit the instruction opcode using inline assembly) __asm__ volatile (".word 0x040F; .word 0x0021;" : : "D"(0) :); On Thu, Mar 11, 2021 at 10:24 AM Gabe Black via

[gem5-users] Re: Shutdown x86 Full System simulation

2021-03-10 Thread Gabe Black via gem5-users
Hi Deepak. On a real system, you would probably use ACPI to tell the chipset to power down the machine, but on gem5 you can probably just run the "exit" pseudo instruction which will tell gem5 to exit back to the python config file. Gabe On Wed, Mar 10, 2021 at 2:07 AM Deepak Mohan via