Fixed compilation error when alignment check is disabled
This commit is contained in:
parent
8d7410a852
commit
680a588575
@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
// $Id: access.cc,v 1.91 2008-02-11 20:52:10 sshwarts Exp $
|
// $Id: access.cc,v 1.92 2008-02-12 06:47:03 sshwarts Exp $
|
||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||||
@ -35,8 +35,12 @@
|
|||||||
// when aligment check is enabled a misaligned access will miss the TLB.
|
// when aligment check is enabled a misaligned access will miss the TLB.
|
||||||
// BX_CPU_THIS_PTR alignment_check_mask must be initialized to all'ones if
|
// BX_CPU_THIS_PTR alignment_check_mask must be initialized to all'ones if
|
||||||
// alignment check exception is enabled and LPF_MASK if not.
|
// alignment check exception is enabled and LPF_MASK if not.
|
||||||
|
#if BX_CPU_LEVEL >= 4 && BX_SUPPORT_ALIGNMENT_CHECK
|
||||||
#define AlignedAccessLPFOf(laddr, alignment_mask) \
|
#define AlignedAccessLPFOf(laddr, alignment_mask) \
|
||||||
((laddr) & (LPF_MASK | (alignment_mask))) & (BX_CPU_THIS_PTR alignment_check_mask)
|
((laddr) & (LPF_MASK | (alignment_mask))) & (BX_CPU_THIS_PTR alignment_check_mask)
|
||||||
|
#else
|
||||||
|
#define AlignedAccessLPFOf(laddr, alignment_mask) LPFOf(laddr)
|
||||||
|
#endif
|
||||||
|
|
||||||
void BX_CPP_AttrRegparmN(3)
|
void BX_CPP_AttrRegparmN(3)
|
||||||
BX_CPU_C::write_virtual_checks(bx_segment_reg_t *seg, bx_address offset, unsigned length)
|
BX_CPU_C::write_virtual_checks(bx_segment_reg_t *seg, bx_address offset, unsigned length)
|
||||||
|
Loading…
Reference in New Issue
Block a user