2014-05-10 03:11:18 +01:00
|
|
|
// Copyright 2014 Citra Emulator Project / PPSSPP Project
|
2014-12-17 05:38:14 +00:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-11-19 08:49:13 +00:00
|
|
|
// Refer to the license.txt file included.
|
2014-05-10 03:11:18 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-10-11 20:19:45 +01:00
|
|
|
#include <string>
|
|
|
|
#include <boost/smart_ptr/intrusive_ptr.hpp>
|
2015-05-06 08:06:12 +01:00
|
|
|
#include "common/common_types.h"
|
2014-05-10 03:11:18 +01:00
|
|
|
|
2014-05-20 23:13:25 +01:00
|
|
|
namespace Kernel {
|
|
|
|
|
2018-10-11 20:19:45 +01:00
|
|
|
class AddressArbiter;
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
using SharedPtr = boost::intrusive_ptr<T>;
|
|
|
|
|
2018-10-11 19:49:52 +01:00
|
|
|
class KernelSystem {
|
|
|
|
public:
|
|
|
|
explicit KernelSystem(u32 system_mode);
|
|
|
|
~KernelSystem();
|
2018-10-11 20:19:45 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates an address arbiter.
|
|
|
|
*
|
|
|
|
* @param name Optional name used for debugging.
|
|
|
|
* @returns The created AddressArbiter.
|
|
|
|
*/
|
|
|
|
SharedPtr<AddressArbiter> CreateAddressArbiter(std::string name = "Unknown");
|
2018-10-11 19:49:52 +01:00
|
|
|
};
|
2014-06-11 03:43:50 +01:00
|
|
|
|
2017-07-21 05:52:50 +01:00
|
|
|
} // namespace Kernel
|