Commit 1306c792 authored by swift_gan's avatar swift_gan Committed by swift_gan

[NativeHook]fix HVC

parent 7d1b9dd6
...@@ -256,7 +256,7 @@ void AssemblerA64::Svc(U16 imm) { ...@@ -256,7 +256,7 @@ void AssemblerA64::Svc(U16 imm) {
} }
void AssemblerA64::Hvc(U16 imm) { void AssemblerA64::Hvc(U16 imm) {
Emit(reinterpret_cast<Unit<Base> *>(new INST_A64(EXCEPTION_GEN)(INST_A64(EXCEPTION_GEN)::XXC, EL1, imm))); Emit(reinterpret_cast<Unit<Base> *>(new INST_A64(EXCEPTION_GEN)(INST_A64(EXCEPTION_GEN)::XXC, EL2, imm)));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment