mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
e685c689f3
- The Guest kernel is run in UM and privileged instructions cause a trap. - If the instruction causing the trap is in a branch delay slot, the branch needs to be emulated to figure out the PC @ which the guest will resume execution. Signed-off-by: Sanjay Lal <sanjayl@kymasys.com> Cc: kvm@vger.kernel.org Cc: linux-mips@linux-mips.org Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
25 lines
660 B
C
25 lines
660 B
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
|
|
* Authors: Sanjay Lal <sanjayl@kymasys.com>
|
|
*/
|
|
|
|
/*
|
|
* Define opcode values not defined in <asm/isnt.h>
|
|
*/
|
|
|
|
#ifndef __KVM_MIPS_OPCODE_H__
|
|
#define __KVM_MIPS_OPCODE_H__
|
|
|
|
/* COP0 Ops */
|
|
#define mfmcz_op 0x0b /* 01011 */
|
|
#define wrpgpr_op 0x0e /* 01110 */
|
|
|
|
/* COP0 opcodes (only if COP0 and CO=1): */
|
|
#define wait_op 0x20 /* 100000 */
|
|
|
|
#endif /* __KVM_MIPS_OPCODE_H__ */
|