From 4dd044c6ba8b957899f0f308ab43ad61a27d26d4 Mon Sep 17 00:00:00 2001 From: Jia Liu Date: Fri, 20 Jul 2012 15:50:49 +0800 Subject: target-or32: Add system instructions Add OpenRISC system instructions. Signed-off-by: Jia Liu Signed-off-by: Blue Swirl --- target-openrisc/helper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target-openrisc/helper.h') 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" -- cgit v1.1