diff options
author | James Hogan <james.hogan@imgtec.com> | 2015-12-16 18:49:33 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2016-01-23 21:15:51 -0500 |
commit | 16d100db245ab34d975e080f39e4cc4ed09b3820 (patch) | |
tree | d8353347f013c35a81276c22e068dc3ced73d8c5 /arch/mips/kvm/interrupt.c | |
parent | 2db9d233860e638fecd4b6c519c880bee98ba5eb (diff) |
MIPS: Move Cause.ExcCode trap codes to mipsregs.h
Move the Cause.ExcCode trap code definitions from kvm_host.h to
mipsregs.h, since they describe architectural bits rather than KVM
specific constants, and change the prefix from T_ to EXCCODE_.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11891/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kvm/interrupt.c')
-rw-r--r-- | arch/mips/kvm/interrupt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kvm/interrupt.c b/arch/mips/kvm/interrupt.c index 9b4445940c2b..95f790663b0c 100644 --- a/arch/mips/kvm/interrupt.c +++ b/arch/mips/kvm/interrupt.c | |||
@@ -128,7 +128,7 @@ int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, | |||
128 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) | 128 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) |
129 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ5)) { | 129 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ5)) { |
130 | allowed = 1; | 130 | allowed = 1; |
131 | exccode = T_INT; | 131 | exccode = EXCCODE_INT; |
132 | } | 132 | } |
133 | break; | 133 | break; |
134 | 134 | ||
@@ -137,7 +137,7 @@ int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, | |||
137 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) | 137 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) |
138 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ0)) { | 138 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ0)) { |
139 | allowed = 1; | 139 | allowed = 1; |
140 | exccode = T_INT; | 140 | exccode = EXCCODE_INT; |
141 | } | 141 | } |
142 | break; | 142 | break; |
143 | 143 | ||
@@ -146,7 +146,7 @@ int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, | |||
146 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) | 146 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) |
147 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ1)) { | 147 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ1)) { |
148 | allowed = 1; | 148 | allowed = 1; |
149 | exccode = T_INT; | 149 | exccode = EXCCODE_INT; |
150 | } | 150 | } |
151 | break; | 151 | break; |
152 | 152 | ||
@@ -155,7 +155,7 @@ int kvm_mips_irq_deliver_cb(struct kvm_vcpu *vcpu, unsigned int priority, | |||
155 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) | 155 | && (!(kvm_read_c0_guest_status(cop0) & (ST0_EXL | ST0_ERL))) |
156 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ2)) { | 156 | && (kvm_read_c0_guest_status(cop0) & IE_IRQ2)) { |
157 | allowed = 1; | 157 | allowed = 1; |
158 | exccode = T_INT; | 158 | exccode = EXCCODE_INT; |
159 | } | 159 | } |
160 | break; | 160 | break; |
161 | 161 | ||