mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-01 12:18:49 +02:00
dac180d7c1
Changes and improves the accuracy of various features of the memory manager. Reduces stuttering in certain games.
25 lines
659 B
C++
25 lines
659 B
C++
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
|
|
|
|
#pragma once
|
|
|
|
#include <kernel/memory.h>
|
|
#include "KObject.h"
|
|
|
|
namespace skyline::kernel::type {
|
|
/**
|
|
* @brief The base kernel memory object that other memory classes derieve from
|
|
*/
|
|
class KMemory : public KObject {
|
|
public:
|
|
KMemory(const DeviceState &state, KType objectType, span <u8> guest) : KObject(state, objectType), guest(guest) {}
|
|
|
|
/**
|
|
* @return A span representing the memory object on the guest
|
|
*/
|
|
span<u8> guest;
|
|
|
|
virtual ~KMemory() = default;
|
|
};
|
|
}
|