[GPU/GSP] Get our first command list

This commit is contained in:
wheremyfoodat 2022-09-21 03:45:33 +03:00
parent 8692e7fc6b
commit 09000da701
4 changed files with 21 additions and 6 deletions

View file

@ -30,7 +30,7 @@ class Emulator {
public:
Emulator() : window(sf::VideoMode(width, height), "Alber", sf::Style::Default, sf::ContextSettings(0, 0, 0, 4, 3)),
kernel(cpu, memory, gpu), cpu(memory, kernel) {
kernel(cpu, memory, gpu), cpu(memory, kernel), gpu(memory) {
reset();
window.setActive(true);
}

View file

@ -1,10 +1,12 @@
#pragma once
#include "helpers.hpp"
#include "memory.hpp"
class GPU {
Memory& mem;
public:
GPU() {}
GPU(Memory& mem) : mem(mem) {}
void clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control);
void reset();
};

View file

@ -26,7 +26,7 @@ class GPUService {
// This is the PID of that process
u32 privilegedProcess;
void processCommands();
void processCommandBuffer();
// Service commands
void acquireRight(u32 messagePointer);
@ -37,7 +37,8 @@ class GPUService {
void writeHwRegs(u32 messagePointer);
void writeHwRegsWithMask(u32 messagePointer);
// GPU commands processed via TriggerCmdReqQueue
// GSP commands processed via TriggerCmdReqQueue
void processCommandList(u32* cmd);
void memoryFill(u32* cmd);
public: