fixed defined but not used warnings

This commit is contained in:
Stanislav Shwartsman 2011-05-29 20:42:47 +00:00
parent 0de8b08f24
commit 1ba77b9f10
3 changed files with 6 additions and 3 deletions

View File

@ -387,7 +387,6 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::CPUID(bxInstruction_c *i)
{
#if BX_CPU_LEVEL >= 4
Bit32u function = EAX;
Bit32u subfunction = ECX;
#if BX_SUPPORT_VMX
if (BX_CPU_THIS_PTR in_vmx_guest) {
@ -402,6 +401,8 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::CPUID(bxInstruction_c *i)
if(function < 0x80000000) {
if(function <= max_std_function) {
#if BX_CPU_LEVEL >= 6
Bit32u subfunction = ECX;
if (function == 0xb && bx_cpuid_support_x2apic()) {
bx_cpuid_extended_topology_leaf(subfunction);
return;

View File

@ -891,7 +891,9 @@ bx_bool BX_CPP_AttrRegparmN(1) BX_CPU_C::SetCR0(bx_address val)
Bit32u val_32 = GET32L(val);
#if BX_CPU_LEVEL >= 6
bx_bool pg = (val_32 >> 31) & 0x1;
#endif
#if BX_SUPPORT_X86_64
if (! BX_CPU_THIS_PTR cr0.get_PG() && pg) {

View File

@ -240,11 +240,11 @@ BX_CPP_INLINE void bxICache_c::flushICacheEntries(void)
// TODO: invalidate only entries in same page as pAddr
BX_CPP_INLINE void bxICache_c::handleSMC(bx_phy_address pAddr, Bit32u mask)
{
unsigned i;
pAddr = LPFOf(pAddr);
#if BX_SUPPORT_TRACE_CACHE
unsigned i;
if (mask & 0x1) {
// the store touched 1st cache line in the page, check for
// page split traces to invalidate.