1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:07:45 +00:00

UserspaceEmulator: Remove hand-rolled is_foo() helpers in favor of RTTI

This commit is contained in:
Andreas Kling 2021-01-01 19:37:36 +01:00
parent db790dda62
commit febc8a5ac7
7 changed files with 13 additions and 17 deletions

View file

@ -27,6 +27,7 @@
#pragma once
#include "ValueWithShadow.h"
#include <AK/TypeCasts.h>
#include <AK/Types.h>
namespace UserspaceEmulator {
@ -54,8 +55,6 @@ public:
virtual ValueWithShadow<u64> read64(u32 offset) = 0;
virtual u8* cacheable_ptr([[maybe_unused]] u32 offset) { return nullptr; }
virtual bool is_shared_buffer() const { return false; }
virtual bool is_mmap() const { return false; }
bool is_stack() const { return m_stack; }
void set_stack(bool b) { m_stack = b; }