[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-cvs
Subject:    [Bochs-cvs] [14342] trunk/bochs/cpu/apic.cc
From:       vruppert--- via Bochs-cvs <bochs-cvs () lists ! sourceforge ! net>
Date:       2021-09-10 16:54:54
Message-ID: 1631292894.535503.4513 () sfp-scm-5 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]

Revision: 14342
Author:   vruppert
Date:     2021-09-10 16:54:54 +0000 (Fri, 10 Sep 2021)
Log Message:
-----------
MWAIT timer fixes (to be completed).
- Fixed MWAIT timer activation.
- A timer handle should not appear in the save/restore list.
- TODO: Activate MWAIT timer after restore if necessary.

Modified Paths:
--------------
    trunk/bochs/cpu/apic.cc

Modified: trunk/bochs/cpu/apic.cc
===================================================================
--- trunk/bochs/cpu/apic.cc	2021-09-10 15:33:22 UTC (rev 14341)
+++ trunk/bochs/cpu/apic.cc	2021-09-10 16:54:54 UTC (rev 14342)
@@ -2,7 +2,7 @@
 // $Id$
 /////////////////////////////////////////////////////////////////////////
 //
-//  Copyright (c) 2002-2019 Zwane Mwaikambo, Stanislav Shwartsman
+//  Copyright (c) 2002-2021 Zwane Mwaikambo, Stanislav Shwartsman
 //
 //  This library is free software; you can redistribute it and/or
 //  modify it under the terms of the GNU Lesser General Public
@@ -1202,7 +1202,7 @@
 void bx_local_apic_c::set_mwaitx_timer(Bit32u value)
 {
   BX_DEBUG(("MWAITX timer: value = %u", value));
-  bx_pc_system.activate_timer_ticks(mwaitx_timer_active, value, 0);
+  bx_pc_system.activate_timer_ticks(mwaitx_timer_handle, value, 0);
   mwaitx_timer_active = 1;
 }
 
@@ -1453,7 +1453,6 @@
 #endif
 
 #if BX_SUPPORT_MONITOR_MWAIT
-  BXRS_DEC_PARAM_SIMPLE(lapic, mwaitx_timer_handle);
   BXRS_PARAM_BOOL(lapic, mwaitx_timer_active, mwaitx_timer_active);
 #endif
 }



_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic