Add debug dialogs (DisAsm, Memory, VFPU).

New features : Breakpoint display, thread status, display list status
Update translation and start french translation
This commit is contained in:
Xele02 2013-02-10 16:36:06 +01:00
parent 2e0beb5833
commit 69b837f18b
46 changed files with 4999 additions and 618 deletions

View file

@ -4,7 +4,9 @@
#include "GPUCommon.h"
#include "GPUState.h"
#include "ChunkFile.h"
#if defined(USING_QT_UI)
#include "Core/Host.h"
#endif
static int dlIdGenerator = 1;
@ -28,6 +30,9 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, bool head)
{
DisplayList dl;
dl.id = dlIdGenerator++;
#if defined(USING_QT_UI)
dl.startpc = listpc & 0xFFFFFFF;
#endif
dl.pc = listpc & 0xFFFFFFF;
dl.stall = stall & 0xFFFFFFF;
dl.status = PSP_GE_LIST_QUEUED;
@ -82,6 +87,12 @@ bool GPUCommon::InterpretList(DisplayList &list)
list.status = PSP_GE_LIST_STALL_REACHED;
return false;
}
#if defined(USING_QT_UI)
if(host->GpuStep())
{
host->SendGPUWait();
}
#endif
op = Memory::ReadUnchecked_U32(list.pc); //read from memory
u32 cmd = op >> 24;
u32 diff = op ^ gstate.cmdmem[cmd];