sal/bochs: strict-aliasing warning removed
This fixes a GCC warning: "warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]" Change-Id: I4f079b239adeb9d3c2ac2daaa2a1333d20046505
This commit is contained in:
@ -11,7 +11,7 @@ regdata_t BochsCPU::getRegisterContent(Register* reg) const
|
||||
// TODO: BX_CPU(0) *always* correct?
|
||||
|
||||
if (reg->getId() == RID_FLAGS) // EFLAGS register?
|
||||
return *reinterpret_cast<regdata_t*>(&(BX_CPU(id)->eflags));
|
||||
return static_cast<regdata_t>(BX_CPU(id)->eflags);
|
||||
|
||||
#ifdef SIM_SUPPORT_64
|
||||
if (reg->getId() == RID_PC) // program counter?
|
||||
|
||||
Reference in New Issue
Block a user