mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/arm/hvf: Use raw_read, raw_write to access
Reduce the places that know about field types by 2. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
bffe756ea1
commit
acf2b6e6b9
@@ -1153,7 +1153,7 @@ static bool hvf_sysreg_read_cp(CPUState *cpu, uint32_t reg, uint64_t *val)
|
||||
} else if (ri->readfn) {
|
||||
*val = ri->readfn(env, ri);
|
||||
} else {
|
||||
*val = CPREG_FIELD64(env, ri);
|
||||
*val = raw_read(env, ri);
|
||||
}
|
||||
trace_hvf_vgic_read(ri->name, *val);
|
||||
return true;
|
||||
@@ -1435,7 +1435,7 @@ static bool hvf_sysreg_write_cp(CPUState *cpu, uint32_t reg, uint64_t val)
|
||||
if (ri->writefn) {
|
||||
ri->writefn(env, ri, val);
|
||||
} else {
|
||||
CPREG_FIELD64(env, ri) = val;
|
||||
raw_write(env, ri, val);
|
||||
}
|
||||
|
||||
trace_hvf_vgic_write(ri->name, val);
|
||||
|
||||
Reference in New Issue
Block a user