From 17328faa038fa67e3b9831afb1514cf5b482136a Mon Sep 17 00:00:00 2001 From: Christophe Bothamy Date: Thu, 8 Apr 2004 20:57:33 +0000 Subject: [PATCH] - triple fault now call bx_pc_system.ResetCpus --- bochs/cpu/exception.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bochs/cpu/exception.cc b/bochs/cpu/exception.cc index 0e375eea0..146b717ac 100644 --- a/bochs/cpu/exception.cc +++ b/bochs/cpu/exception.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: exception.cc,v 1.36 2004-02-11 23:47:55 cbothamy Exp $ +// $Id: exception.cc,v 1.37 2004-04-08 20:57:33 cbothamy Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -871,10 +871,7 @@ BX_CPU_C::exception(unsigned vector, Bit16u error_code, bx_bool is_INT) if (BX_CPU_THIS_PTR errorno >= 3) { #if BX_RESET_ON_TRIPLE_FAULT BX_ERROR(("exception(): 3rd (%d) exception with no resolution, shutdown status is %02xh, resetting", vector, DEV_cmos_get_reg(0x0f))); - { - for (int i=0; ireset(BX_RESET_HARDWARE); - } + bx_pc_system.ResetCpus( BX_RESET_HARDWARE ); #else BX_PANIC(("exception(): 3rd (%d) exception with no resolution", vector)); BX_ERROR(("WARNING: Any simulation after this point is completely bogus."));