mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
PowerPC: Reorder members of TranslateAddressResult to reduce struct size.
This commit is contained in:
parent
e3a784ffba
commit
3296d2fc1f
@ -109,9 +109,14 @@ enum class TranslateAddressResultEnum : u8
|
|||||||
|
|
||||||
struct TranslateAddressResult
|
struct TranslateAddressResult
|
||||||
{
|
{
|
||||||
TranslateAddressResultEnum result;
|
|
||||||
u32 address;
|
u32 address;
|
||||||
|
TranslateAddressResultEnum result;
|
||||||
bool wi; // Set to true if the view of memory is either write-through or cache-inhibited
|
bool wi; // Set to true if the view of memory is either write-through or cache-inhibited
|
||||||
|
|
||||||
|
TranslateAddressResult(TranslateAddressResultEnum result_, u32 address_, bool wi_ = false)
|
||||||
|
: address(address_), result(result_), wi(wi_)
|
||||||
|
{
|
||||||
|
}
|
||||||
bool Success() const { return result <= TranslateAddressResultEnum::PAGE_TABLE_TRANSLATED; }
|
bool Success() const { return result <= TranslateAddressResultEnum::PAGE_TABLE_TRANSLATED; }
|
||||||
};
|
};
|
||||||
template <const XCheckTLBFlag flag>
|
template <const XCheckTLBFlag flag>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user