Refactor out ReturnMode enum.

This commit is contained in:
Hans-Kristian Arntzen 2020-01-29 22:10:08 +01:00
parent b39ac26bb1
commit 350ca7d46c
3 changed files with 10 additions and 17 deletions

View File

@ -21,14 +21,6 @@ using Block = JIT::Block;
#endif
using Func = JIT::Func;
enum ReturnMode
{
MODE_ENTER = 0,
MODE_CONTINUE = 1,
MODE_BREAK = 2,
MODE_DMA_READ = 3,
MODE_CHECK_FLAGS = 4
};
class alignas(64) CPU
{

View File

@ -22,15 +22,6 @@ namespace JIT
{
using Func = jit_pointer_t;
enum ReturnMode
{
MODE_ENTER = 0,
MODE_CONTINUE = 1,
MODE_BREAK = 2,
MODE_DMA_READ = 3,
MODE_CHECK_FLAGS = 4
};
class alignas(64) CPU
{
public:

View File

@ -131,6 +131,16 @@ struct CPUState
CP2 cp2 = {};
CP0 cp0;
};
enum ReturnMode
{
MODE_ENTER = 0,
MODE_CONTINUE = 1,
MODE_BREAK = 2,
MODE_DMA_READ = 3,
MODE_CHECK_FLAGS = 4
};
} // namespace RSP
#endif