summary refs log tree commit diff stats
path: root/target-tilegx/helper.h
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2015-10-04 17:41:14 +0800
committerRichard Henderson <rth@twiddle.net>2015-10-07 20:24:04 +1100
commitfec7daab3d63b7b2ca61581fffc40142b22b2bd5 (patch)
tree265ec0eb27679df78f101410447fb1376627a405 /target-tilegx/helper.h
parent77b3adc0012153e629b48b710ad19a8b544bb507 (diff)
downloadfocaccia-qemu-fec7daab3d63b7b2ca61581fffc40142b22b2bd5.tar.gz
focaccia-qemu-fec7daab3d63b7b2ca61581fffc40142b22b2bd5.zip
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>
Diffstat (limited to 'target-tilegx/helper.h')
-rw-r--r--target-tilegx/helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-tilegx/helper.h b/target-tilegx/helper.h
index bbcc4761eb..9281d0f428 100644
--- a/target-tilegx/helper.h
+++ b/target-tilegx/helper.h
@@ -1,4 +1,5 @@
 DEF_HELPER_2(exception, noreturn, env, i32)
+DEF_HELPER_1(ext01_ics, void, env)
 DEF_HELPER_FLAGS_1(cntlz, TCG_CALL_NO_RWG_SE, i64, i64)
 DEF_HELPER_FLAGS_1(cnttz, TCG_CALL_NO_RWG_SE, i64, i64)
 DEF_HELPER_FLAGS_1(pcnt, TCG_CALL_NO_RWG_SE, i64, i64)