mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target-tilegx: Support iret instruction and related special registers
EX_CONTEXT_0_0 is used for jumping address, and EX_CONTEXT_0_1 is for INTERRUPT_CRITICAL_SECTION, which should only be 0 or 1 in user mode, or it will cause target SIGILL (and the patch doesn't support system mode). Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
77b3adc001
commit
fec7daab3d
4 changed files with 38 additions and 1 deletions
|
@ -53,6 +53,8 @@ enum {
|
|||
TILEGX_SPR_CMPEXCH = 0,
|
||||
TILEGX_SPR_CRITICAL_SEC = 1,
|
||||
TILEGX_SPR_SIM_CONTROL = 2,
|
||||
TILEGX_SPR_EX_CONTEXT_0_0 = 3,
|
||||
TILEGX_SPR_EX_CONTEXT_0_1 = 4,
|
||||
TILEGX_SPR_COUNT
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue