diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2018-05-23 07:13:26 -0700 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2018-07-03 00:05:28 +0900 |
commit | c28fa81f915b03834b00187e43604e42768f15fa (patch) | |
tree | cfc38f8014f4d92ea4f216ef8c2f791a6d305163 /target/openrisc/helper.h | |
parent | 01ec3ec930c90374a8870e99e0da63c17d708d47 (diff) | |
download | qemu-c28fa81f915b03834b00187e43604e42768f15fa.zip |
target/openrisc: Form the spr index from tcg
Rather than pass base+offset to the helper, pass the full index.
In most cases the base is r0 and optimization yields a constant.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'target/openrisc/helper.h')
-rw-r--r-- | target/openrisc/helper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/openrisc/helper.h b/target/openrisc/helper.h index e37dabc77a..9db9bf3963 100644 --- a/target/openrisc/helper.h +++ b/target/openrisc/helper.h @@ -56,5 +56,5 @@ FOP_CMP(le) 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, TCG_CALL_NO_WG, tl, env, tl, tl, tl) +DEF_HELPER_FLAGS_3(mtspr, 0, void, env, tl, tl) +DEF_HELPER_FLAGS_3(mfspr, TCG_CALL_NO_WG, tl, env, tl, tl) |