mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
target/s390x: Use env_archcpu() in handle_diag_308()
When CPUArchState* is available (here CPUS390XState*), we can use the fast env_archcpu() macro to get ArchCPU* (here S390CPU*). The QOM cast S390_CPU() macro will be slower when building with --enable-qom-cast-debug. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20231009110239.66778-4-philmd@linaro.org>
This commit is contained in:
parent
edf67fb4c2
commit
2c6822cd59
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ void handle_diag_308(CPUS390XState *env, uint64_t r1, uint64_t r3, uintptr_t ra)
|
||||||
{
|
{
|
||||||
bool valid;
|
bool valid;
|
||||||
CPUState *cs = env_cpu(env);
|
CPUState *cs = env_cpu(env);
|
||||||
S390CPU *cpu = S390_CPU(cs);
|
S390CPU *cpu = env_archcpu(env);
|
||||||
uint64_t addr = env->regs[r1];
|
uint64_t addr = env->regs[r1];
|
||||||
uint64_t subcode = env->regs[r3];
|
uint64_t subcode = env->regs[r3];
|
||||||
IplParameterBlock *iplb;
|
IplParameterBlock *iplb;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue