From 08a068a161bbf77d5c985c57337c6b3321a92d16 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Thu, 11 Mar 2021 21:19:45 +0000 Subject: [PATCH] fixed SVM V_TPR handling SF bug #1428 AMD SVM Hyper-V fails --- bochs/cpu/crregs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bochs/cpu/crregs.cc b/bochs/cpu/crregs.cc index 46cf6dcfe..188e7da5f 100644 --- a/bochs/cpu/crregs.cc +++ b/bochs/cpu/crregs.cc @@ -1459,7 +1459,7 @@ void BX_CPU_C::WriteCR8(bxInstruction_c *i, bx_address val) #if BX_SUPPORT_SVM if (BX_CPU_THIS_PTR in_svm_guest) { - SVM_V_TPR = tpr; + SVM_V_TPR = tpr >> 4; // V_TPR just matching CR8[3:0] handleInterruptMaskChange(); if (SVM_V_INTR_MASKING) return; }