target-tilegx: Support iret instruction and related special registers
commitfec7daab3d63b7b2ca61581fffc40142b22b2bd5
authorChen Gang <gang.chen.5i5j@gmail.com>
Sun, 4 Oct 2015 09:41:14 +0000 (4 17:41 +0800)
committerRichard Henderson <rth@twiddle.net>
Wed, 7 Oct 2015 09:24:04 +0000 (7 20:24 +1100)
tree265ec0eb27679df78f101410447fb1376627a405
parent77b3adc0012153e629b48b710ad19a8b544bb507
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>
target-tilegx/cpu.h
target-tilegx/helper.c
target-tilegx/helper.h
target-tilegx/translate.c