target/openrisc: Form the spr index from tcg
commitc28fa81f915b03834b00187e43604e42768f15fa
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 23 May 2018 14:13:26 +0000 (23 07:13 -0700)
committerStafford Horne <shorne@gmail.com>
Mon, 2 Jul 2018 15:05:28 +0000 (3 00:05 +0900)
treecfc38f8014f4d92ea4f216ef8c2f791a6d305163
parent01ec3ec930c90374a8870e99e0da63c17d708d47
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>
target/openrisc/helper.h
target/openrisc/sys_helper.c
target/openrisc/translate.c