Skip to content

Commit

Permalink
Merge pull request #171 from roy-hopkins/gdbfix
Browse files Browse the repository at this point in the history
cpu/vc: Fix VC exception handler index for trap exception
  • Loading branch information
joergroedel authored Dec 1, 2023
2 parents 5159d77 + 0a1b170 commit b29db24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpu/vc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub fn handle_vc_exception(ctx: &mut X86ExceptionContext) {
match error_code {
// If the debugger is enabled then handle the DB exception
// by directly invoking the exception handler
X86_TRAP_DB => handle_debug_exception(ctx, ctx.vector),
X86_TRAP => handle_debug_exception(ctx, ctx.vector),
SVM_EXIT_CPUID => handle_cpuid(ctx).expect("Could not handle CPUID #VC exception"),
SVM_EXIT_IOIO => {
handle_ioio(ctx, ghcb, &insn).expect("Could not handle IOIO #VC exception")
Expand Down

0 comments on commit b29db24

Please sign in to comment.