From 5579bdfc55cc386da547f0c7c0f17c934dd625dc Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Tue, 22 Dec 2009 12:11:09 +0000 Subject: [PATCH] removed unused param --- bochs/cpu/call_far.cc | 6 +++--- bochs/cpu/cpu.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bochs/cpu/call_far.cc b/bochs/cpu/call_far.cc index 3dd851a63..f5a5c9c36 100755 --- a/bochs/cpu/call_far.cc +++ b/bochs/cpu/call_far.cc @@ -1,5 +1,5 @@ //////////////////////////////////////////////////////////////////////// -// $Id: call_far.cc,v 1.51 2009-12-22 11:58:25 sshwarts Exp $ +// $Id: call_far.cc,v 1.52 2009-12-22 12:11:09 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (c) 2005-2009 Stanislav Shwartsman @@ -197,7 +197,7 @@ BX_CPU_C::call_protected(bxInstruction_c *i, Bit16u cs_raw, bx_address disp) BX_ERROR(("call_protected: gate not present")); exception(BX_NP_EXCEPTION, cs_raw & 0xfffc, 0); } - call_gate(&gate_selector, &gate_descriptor); + call_gate(&gate_descriptor); return; default: // can't get here @@ -207,7 +207,7 @@ BX_CPU_C::call_protected(bxInstruction_c *i, Bit16u cs_raw, bx_address disp) } } -void BX_CPP_AttrRegparmN(2) BX_CPU_C::call_gate(bx_selector_t *gate_selector, bx_descriptor_t *gate_descriptor) +void BX_CPP_AttrRegparmN(1) BX_CPU_C::call_gate(bx_descriptor_t *gate_descriptor) { bx_selector_t cs_selector; Bit32u dword1, dword2; diff --git a/bochs/cpu/cpu.h b/bochs/cpu/cpu.h index 6fc1949f9..3e3d54782 100644 --- a/bochs/cpu/cpu.h +++ b/bochs/cpu/cpu.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: cpu.h,v 1.630 2009-12-22 11:58:26 sshwarts Exp $ +// $Id: cpu.h,v 1.631 2009-12-22 12:11:09 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001-2009 The Bochs Project @@ -3126,7 +3126,7 @@ public: // for now... BX_SMF void task_gate(bxInstruction_c *i, bx_selector_t *selector, bx_descriptor_t *gate_descriptor, unsigned source); BX_SMF void jump_protected(bxInstruction_c *i, Bit16u cs, bx_address disp) BX_CPP_AttrRegparmN(3); BX_SMF void jmp_call_gate(bx_selector_t *selector, bx_descriptor_t *gate_descriptor) BX_CPP_AttrRegparmN(2); - BX_SMF void call_gate(bx_selector_t *gate_selector, bx_descriptor_t *gate_descriptor) BX_CPP_AttrRegparmN(2); + BX_SMF void call_gate(bx_descriptor_t *gate_descriptor) BX_CPP_AttrRegparmN(1); #if BX_SUPPORT_X86_64 BX_SMF void jmp_call_gate64(bx_selector_t *selector) BX_CPP_AttrRegparmN(1); #endif