mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
UserspaceEmulator: Fix a Clang warning
Clang didn't like default construction of PartAddressableRegister, so let's just use memset() then.
This commit is contained in:
parent
deceb91c48
commit
f1801cfb28
2 changed files with 3 additions and 1 deletions
|
@ -28,12 +28,14 @@
|
||||||
#include "Emulator.h"
|
#include "Emulator.h"
|
||||||
#include <AK/Assertions.h>
|
#include <AK/Assertions.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
namespace UserspaceEmulator {
|
namespace UserspaceEmulator {
|
||||||
|
|
||||||
SoftCPU::SoftCPU(Emulator& emulator)
|
SoftCPU::SoftCPU(Emulator& emulator)
|
||||||
: m_emulator(emulator)
|
: m_emulator(emulator)
|
||||||
{
|
{
|
||||||
|
memset(m_gpr, 0, sizeof(m_gpr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SoftCPU::dump() const
|
void SoftCPU::dump() const
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Emulator;
|
||||||
|
|
||||||
union PartAddressableRegister {
|
union PartAddressableRegister {
|
||||||
struct {
|
struct {
|
||||||
u32 full_u32 { 0 };
|
u32 full_u32;
|
||||||
};
|
};
|
||||||
struct {
|
struct {
|
||||||
u16 low_u16;
|
u16 low_u16;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue