Gdbstub: handle read of fpscr
Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
f5b6ffcf2a
commit
5a576fb3e2
@ -733,7 +733,7 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n)
|
||||
{
|
||||
if (gdb_has_xml)
|
||||
return 0;
|
||||
GET_REG32(0); /* fpscr */
|
||||
GET_REG32(env->fpscr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9700,8 +9700,7 @@ static int gdb_get_float_reg(CPUState *env, uint8_t *mem_buf, int n)
|
||||
return 8;
|
||||
}
|
||||
if (n == 32) {
|
||||
/* FPSCR not implemented */
|
||||
memset(mem_buf, 0, 4);
|
||||
stl_p(mem_buf, env->fpscr);
|
||||
return 4;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user