summaryrefslogtreecommitdiffstats
path: root/target-openrisc/helper.h
diff options
context:
space:
mode:
authorJia Liu <proljc@gmail.com>2012-07-20 15:50:49 +0800
committerBlue Swirl <blauwirbel@gmail.com>2012-07-27 21:13:03 +0000
commit4dd044c6ba8b957899f0f308ab43ad61a27d26d4 (patch)
tree68983918642a4b791fee6659513f8097c9ccdb17 /target-openrisc/helper.h
parentce6e1e9ec9b54811a942d6aece92fab3f5ace88d (diff)
downloadhqemu-4dd044c6ba8b957899f0f308ab43ad61a27d26d4.zip
hqemu-4dd044c6ba8b957899f0f308ab43ad61a27d26d4.tar.gz
target-or32: Add system instructions
Add OpenRISC system instructions. Signed-off-by: Jia Liu <proljc@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-openrisc/helper.h')
-rw-r--r--target-openrisc/helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target-openrisc/helper.h b/target-openrisc/helper.h
index 635c69c..404d464 100644
--- a/target-openrisc/helper.h
+++ b/target-openrisc/helper.h
@@ -63,4 +63,8 @@ DEF_HELPER_FLAGS_3(mul32, 0, i32, env, i32, i32)
/* interrupt */
DEF_HELPER_FLAGS_1(rfe, 0, void, env)
+/* sys */
+DEF_HELPER_FLAGS_4(mtspr, 0, void, env, tl, tl, tl)
+DEF_HELPER_FLAGS_4(mfspr, 0, tl, env, tl, tl, tl)
+
#include "def-helper.h"
OpenPOWER on IntegriCloud