mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/loongarch: Add LSX data type VReg
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-Id: <20230504122810.4094787-2-gaosong@loongson.cn>
This commit is contained in:
parent
eb5c3932a3
commit
16f5396cec
6 changed files with 119 additions and 13 deletions
|
@ -69,7 +69,7 @@ static int loongarch_gdb_get_fpu(CPULoongArchState *env,
|
|||
GByteArray *mem_buf, int n)
|
||||
{
|
||||
if (0 <= n && n < 32) {
|
||||
return gdb_get_reg64(mem_buf, env->fpr[n]);
|
||||
return gdb_get_reg64(mem_buf, env->fpr[n].vreg.D(0));
|
||||
} else if (n == 32) {
|
||||
uint64_t val = read_fcc(env);
|
||||
return gdb_get_reg64(mem_buf, val);
|
||||
|
@ -85,7 +85,7 @@ static int loongarch_gdb_set_fpu(CPULoongArchState *env,
|
|||
int length = 0;
|
||||
|
||||
if (0 <= n && n < 32) {
|
||||
env->fpr[n] = ldq_p(mem_buf);
|
||||
env->fpr[n].vreg.D(0) = ldq_p(mem_buf);
|
||||
length = 8;
|
||||
} else if (n == 32) {
|
||||
uint64_t val = ldq_p(mem_buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue