mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 13:47:03 +00:00
target/s390x: Use unwind data for helper_lam
Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
08a4cb793f
commit
9393c020bf
@ -469,10 +469,11 @@ static uint32_t helper_icm(CPUS390XState *env, uint32_t r1, uint64_t address,
|
|||||||
/* load access registers r1 to r3 from memory at a2 */
|
/* load access registers r1 to r3 from memory at a2 */
|
||||||
void HELPER(lam)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3)
|
void HELPER(lam)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3)
|
||||||
{
|
{
|
||||||
|
uintptr_t ra = GETPC();
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = r1;; i = (i + 1) % 16) {
|
for (i = r1;; i = (i + 1) % 16) {
|
||||||
env->aregs[i] = cpu_ldl_data(env, a2);
|
env->aregs[i] = cpu_ldl_data_ra(env, a2, ra);
|
||||||
a2 += 4;
|
a2 += 4;
|
||||||
|
|
||||||
if (i == r3) {
|
if (i == r3) {
|
||||||
|
@ -2626,7 +2626,6 @@ static ExitStatus op_lam(DisasContext *s, DisasOps *o)
|
|||||||
{
|
{
|
||||||
TCGv_i32 r1 = tcg_const_i32(get_field(s->fields, r1));
|
TCGv_i32 r1 = tcg_const_i32(get_field(s->fields, r1));
|
||||||
TCGv_i32 r3 = tcg_const_i32(get_field(s->fields, r3));
|
TCGv_i32 r3 = tcg_const_i32(get_field(s->fields, r3));
|
||||||
potential_page_fault(s);
|
|
||||||
gen_helper_lam(cpu_env, r1, o->in2, r3);
|
gen_helper_lam(cpu_env, r1, o->in2, r3);
|
||||||
tcg_temp_free_i32(r1);
|
tcg_temp_free_i32(r1);
|
||||||
tcg_temp_free_i32(r3);
|
tcg_temp_free_i32(r3);
|
||||||
|
Loading…
Reference in New Issue
Block a user