2013-07-12 15:42:17 +03:00
|
|
|
#pragma once
|
2015-08-02 05:15:49 +03:00
|
|
|
|
2013-07-12 15:42:17 +03:00
|
|
|
#include "SPUThread.h"
|
|
|
|
|
|
2015-07-01 01:25:52 +03:00
|
|
|
class RawSPUThread final : public SPUThread
|
2013-07-12 15:42:17 +03:00
|
|
|
{
|
2016-04-14 02:09:41 +03:00
|
|
|
void cpu_task() override;
|
|
|
|
|
|
2013-07-12 15:42:17 +03:00
|
|
|
public:
|
2016-04-14 02:09:41 +03:00
|
|
|
/* IdManager setups */
|
|
|
|
|
|
|
|
|
|
using id_base = RawSPUThread;
|
|
|
|
|
|
|
|
|
|
static constexpr u32 id_min = 0;
|
|
|
|
|
static constexpr u32 id_max = 4;
|
|
|
|
|
|
2016-04-25 13:49:12 +03:00
|
|
|
void on_init() override;
|
|
|
|
|
|
|
|
|
|
RawSPUThread(const std::string& name);
|
2013-07-12 15:42:17 +03:00
|
|
|
|
2015-07-19 14:36:32 +03:00
|
|
|
bool read_reg(const u32 addr, u32& value);
|
|
|
|
|
bool write_reg(const u32 addr, const u32 value);
|
2013-07-12 15:42:17 +03:00
|
|
|
};
|