mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 21:33:40 +08:00
target-s390x: Don't overuse ENV_GET_CPU()
Commit 3474b67948
(Utilize selective
runtime reg sync for hot code paths) introduced two uses of
ENV_GET_CPU() inside target-s390x/ KVM code. In one case we can use a
direct CPU() cast instead.
Cc: Jason J. Herne <jjherne@us.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
09c6a63a61
commit
19079e4605
@ -469,7 +469,7 @@ static int kvm_handle_css_inst(S390CPU *cpu, struct kvm_run *run,
|
||||
int r = 0;
|
||||
int no_cc = 0;
|
||||
CPUS390XState *env = &cpu->env;
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
CPUState *cs = CPU(cpu);
|
||||
|
||||
if (ipa0 != 0xb2) {
|
||||
/* Not handled for now. */
|
||||
|
Loading…
Reference in New Issue
Block a user