mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:47:35 +00:00
UserspaceEmulator: Wrap the GPRs in ValueWithShadow
...instead of manually tracking their shadow data.
This commit is contained in:
parent
f6e82a8e0a
commit
70b53b44b2
3 changed files with 25 additions and 30 deletions
|
@ -107,12 +107,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
ValueAndShadowReference(T& value, T& shadow)
|
||||
: m_value(value)
|
||||
, m_shadow(*bit_cast<ShadowType*>(&shadow))
|
||||
{
|
||||
}
|
||||
|
||||
bool is_uninitialized() const
|
||||
{
|
||||
for (size_t i = 0; i < sizeof(ShadowType); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue