mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/openrisc: Keep SR_F in a separate variable
This avoids having to keep merging and extracting the flag from SR. Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
cf2ae4428f
commit
84775c43f3
9 changed files with 98 additions and 78 deletions
|
@ -38,7 +38,7 @@ int openrisc_cpu_gdb_read_register(CPUState *cs, uint8_t *mem_buf, int n)
|
|||
return gdb_get_reg32(mem_buf, env->npc);
|
||||
|
||||
case 34: /* SR */
|
||||
return gdb_get_reg32(mem_buf, env->sr);
|
||||
return gdb_get_reg32(mem_buf, cpu_get_sr(env));
|
||||
|
||||
default:
|
||||
break;
|
||||
|
@ -73,7 +73,7 @@ int openrisc_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
|||
break;
|
||||
|
||||
case 34: /* SR */
|
||||
env->sr = tmp;
|
||||
cpu_set_sr(env, tmp);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue