Re: [PATCH] target/openrisc: implement shutdown and reset helpers

2022-05-03 Thread Richard Henderson
On 5/3/22 02:14, Stafford Horne wrote: Yes, we had a mail discussion about this with Peter. This being similar to ARM semihosting; enabling these special instructions should be behind the semihosting flag. Something that needs to be done for this patch. Ah, ok. Our other simulators impleme

Re: [PATCH] target/openrisc: implement shutdown and reset helpers

2022-05-03 Thread Stafford Horne
On Tue, May 03, 2022 at 10:54:41AM +0200, Jason A. Donenfeld wrote: > On Mon, May 02, 2022 at 04:57:43PM -0700, Richard Henderson wrote: > > On 5/2/22 15:52, Jason A. Donenfeld wrote: > > > OpenRISC defines various nop instructions in or1k as meaning shutdown or > > > reset. Implement these in TCG.

Re: [PATCH] target/openrisc: implement shutdown and reset helpers

2022-05-03 Thread Jason A. Donenfeld
On Mon, May 02, 2022 at 04:57:43PM -0700, Richard Henderson wrote: > On 5/2/22 15:52, Jason A. Donenfeld wrote: > > OpenRISC defines various nop instructions in or1k as meaning shutdown or > > reset. Implement these in TCG. This has been tested with Linux and > > confirmed to work. > > No, OpenRIS

Re: [PATCH] target/openrisc: implement shutdown and reset helpers

2022-05-02 Thread Richard Henderson
On 5/2/22 15:52, Jason A. Donenfeld wrote: OpenRISC defines various nop instructions in or1k as meaning shutdown or reset. Implement these in TCG. This has been tested with Linux and confirmed to work. No, OpenRISC does not define various nop instructions, etc. OpenRISC defines a Power Managem

[PATCH] target/openrisc: implement shutdown and reset helpers

2022-05-02 Thread Jason A. Donenfeld
OpenRISC defines various nop instructions in or1k as meaning shutdown or reset. Implement these in TCG. This has been tested with Linux and confirmed to work. Cc: Stafford Horne Signed-off-by: Jason A. Donenfeld --- target/openrisc/helper.h | 1 + target/openrisc/sys_helper.c | 18