2012-12-19 09:30:18 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-07-06 20:14:12 +00:00
|
|
|
#include <Project64-core/N64System/N64Types.h>
|
2022-10-10 00:22:17 +00:00
|
|
|
#include <Project64-core/N64System/Recompiler/RegInfo.h>
|
2015-12-06 09:59:58 +00:00
|
|
|
|
2022-08-29 08:27:17 +00:00
|
|
|
class CCodeBlock;
|
|
|
|
|
2022-09-05 08:12:41 +00:00
|
|
|
enum ExitReason
|
|
|
|
{
|
|
|
|
ExitReason_Normal,
|
|
|
|
ExitReason_NormalNoSysCheck,
|
|
|
|
ExitReason_DoCPUAction,
|
|
|
|
ExitReason_COP1Unuseable,
|
|
|
|
ExitReason_DoSysCall,
|
2022-10-10 01:37:04 +00:00
|
|
|
ExitReason_Break,
|
2022-09-05 08:12:41 +00:00
|
|
|
ExitReason_TLBReadMiss,
|
|
|
|
ExitReason_TLBWriteMiss,
|
|
|
|
ExitReason_ResetRecompCode,
|
|
|
|
ExitReason_ExceptionOverflow,
|
2022-10-10 09:55:16 +00:00
|
|
|
ExitReason_AddressErrorExceptionRead32,
|
|
|
|
ExitReason_AddressErrorExceptionRead64,
|
2022-10-24 06:20:12 +00:00
|
|
|
ExitReason_IllegalInstruction,
|
2022-09-05 08:12:41 +00:00
|
|
|
};
|
|
|
|
|
2015-11-09 08:32:13 +00:00
|
|
|
struct CExitInfo
|
2010-05-30 01:54:42 +00:00
|
|
|
{
|
2022-08-08 10:52:51 +00:00
|
|
|
CExitInfo(CCodeBlock & CodeBlock);
|
|
|
|
|
2022-05-30 10:50:25 +00:00
|
|
|
std::string Name;
|
2022-01-18 07:47:21 +00:00
|
|
|
uint32_t ID;
|
|
|
|
uint32_t TargetPC;
|
|
|
|
CRegInfo ExitRegSet;
|
2022-09-05 08:12:41 +00:00
|
|
|
ExitReason Reason;
|
2022-01-18 07:47:21 +00:00
|
|
|
PIPELINE_STAGE PipelineStage;
|
|
|
|
uint32_t * JumpLoc; // 32-bit jump
|
2010-05-30 01:54:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::list<CExitInfo> EXIT_LIST;
|