add SH4 to architecture enum
This commit is contained in:
@@ -87,7 +87,7 @@ string CompiledFunctionCode::generate_client_command(
|
|||||||
if (this->arch == Architecture::POWERPC) {
|
if (this->arch == Architecture::POWERPC) {
|
||||||
return this->generate_client_command_t<S_ExecuteCode_Footer_GC_B2, be_uint16_t>(
|
return this->generate_client_command_t<S_ExecuteCode_Footer_GC_B2, be_uint16_t>(
|
||||||
label_writes, suffix);
|
label_writes, suffix);
|
||||||
} else if (this->arch == Architecture::X86) {
|
} else if ((this->arch == Architecture::X86) || (this->arch == Architecture::SH4)) {
|
||||||
return this->generate_client_command_t<S_ExecuteCode_Footer_DC_PC_XB_BB_B2, le_uint16_t>(
|
return this->generate_client_command_t<S_ExecuteCode_Footer_DC_PC_XB_BB_B2, le_uint16_t>(
|
||||||
label_writes, suffix);
|
label_writes, suffix);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -16,13 +16,14 @@ bool function_compiler_available();
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// TODO: Support x86 function calls in the future. Currently we only support
|
// TODO: Support x86 and SH4 function calls in the future. Currently we only
|
||||||
// PPC32 because I haven't written an appropriate x86 assembler yet.
|
// support PPC32 because I haven't written an appropriate x86 assembler yet.
|
||||||
|
|
||||||
struct CompiledFunctionCode {
|
struct CompiledFunctionCode {
|
||||||
enum class Architecture {
|
enum class Architecture {
|
||||||
POWERPC = 0,
|
POWERPC = 0, // GC
|
||||||
X86,
|
X86, // PC, XB, BB
|
||||||
|
SH4, // Dreamcast
|
||||||
};
|
};
|
||||||
Architecture arch;
|
Architecture arch;
|
||||||
std::string code;
|
std::string code;
|
||||||
|
|||||||
Reference in New Issue
Block a user