target/hppa: fix setting registers via gdb
While doing 'set $pcoqh=0xf0000000' i triggered the assertion below. The argument order for deposit64() is wrong, and val needs to be moved to the end. Signed-off-by: Sven Schnelle <svens@stackframe.org> Message-Id: <20190128165333.3814-1-svens@stackframe.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
84b41e658b
commit
5c41496dd7
@ -266,7 +266,7 @@ int hppa_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
||||
case 65 ... 127:
|
||||
{
|
||||
uint64_t *fr = &env->fr[(n - 64) / 2];
|
||||
*fr = deposit64(*fr, val, (n & 1 ? 0 : 32), 32);
|
||||
*fr = deposit64(*fr, (n & 1 ? 0 : 32), 32, val);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user