booke.c (acf17878da680a0c11c0bcb8a54b4f676ff39c80) booke.c (953e37397fb61be61f095d36972188bac5235021)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 *
4 * Copyright IBM Corp. 2007
5 * Copyright 2010-2011 Freescale Semiconductor, Inc.
6 *
7 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
8 * Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

--- 830 unchanged lines hidden (view full) ---

839 /* Future optimization: only reload non-volatiles if
840 * they were actually modified by emulation. */
841 return RESUME_GUEST_NV;
842
843 case EMULATE_AGAIN:
844 return RESUME_GUEST;
845
846 case EMULATE_FAIL:
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 *
4 * Copyright IBM Corp. 2007
5 * Copyright 2010-2011 Freescale Semiconductor, Inc.
6 *
7 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
8 * Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

--- 830 unchanged lines hidden (view full) ---

839 /* Future optimization: only reload non-volatiles if
840 * they were actually modified by emulation. */
841 return RESUME_GUEST_NV;
842
843 case EMULATE_AGAIN:
844 return RESUME_GUEST;
845
846 case EMULATE_FAIL:
847 printk(KERN_CRIT "%s: emulation at %lx failed (%08x)\n",
847 printk(KERN_CRIT "%s: emulation at %lx failed (%08lx)\n",
848 __func__, vcpu->arch.regs.nip, vcpu->arch.last_inst);
849 /* For debugging, encode the failing instruction and
850 * report it to userspace. */
851 vcpu->run->hw.hardware_exit_reason = ~0ULL << 32;
852 vcpu->run->hw.hardware_exit_reason |= vcpu->arch.last_inst;
853 kvmppc_core_queue_program(vcpu, ESR_PIL);
854 return RESUME_HOST;
855

--- 1387 unchanged lines hidden ---
848 __func__, vcpu->arch.regs.nip, vcpu->arch.last_inst);
849 /* For debugging, encode the failing instruction and
850 * report it to userspace. */
851 vcpu->run->hw.hardware_exit_reason = ~0ULL << 32;
852 vcpu->run->hw.hardware_exit_reason |= vcpu->arch.last_inst;
853 kvmppc_core_queue_program(vcpu, ESR_PIL);
854 return RESUME_HOST;
855

--- 1387 unchanged lines hidden ---