mirror of
https://github.com/ptitSeb/box64.git
synced 2025-02-17 04:49:17 +00:00
[RV64_DYNAREC] Fixed scratch register conflict for SUB (#556)
This commit is contained in:
parent
87790a8d7a
commit
19a06a8755
3
.gitignore
vendored
3
.gitignore
vendored
@ -65,3 +65,6 @@ backup/
|
||||
!/LLVMprivateGenerator/Makefile
|
||||
!/LLVMprivateGenerator/main.cpp
|
||||
!/LLVMprivateGenerator/registered_structs.cpp
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
|
@ -85,7 +85,7 @@ uintptr_t dynarec64_00(dynarec_rv64_t* dyn, uintptr_t addr, uintptr_t ip, int ni
|
||||
SETFLAGS(X_ALL, SF_SET_PENDING);
|
||||
GETED((opcode==0x81)?4:1);
|
||||
if(opcode==0x81) i64 = F32S; else i64 = F8S;
|
||||
emit_sub32c(dyn, ninst, rex, ed, i64, x2, x3, x4, x5);
|
||||
emit_sub32c(dyn, ninst, rex, ed, i64, x3, x4, x5, x6);
|
||||
WBACK;
|
||||
break;
|
||||
default:
|
||||
|
@ -420,8 +420,8 @@ static inline insn_t insn_ciwtype_read(uint16_t data)
|
||||
#define PRINT_fd_xs1() snprintf(buff, sizeof(buff), "%s\t%s, %s", insn.name, fpnames[insn.rd], gpnames[insn.rs1]); return buff
|
||||
|
||||
// TODO: display csr name
|
||||
#define PRINT_rd_csr_rs1() snprintf(buff, sizeof(buff), "%s\t%d, %s", insn.name, RN(rd), insn.csr, RN(rs1)); return buff
|
||||
#define PRINT_rd_csr_uimm() snprintf(buff, sizeof(buff), "%s\t%d, %d", insn.name, RN(rd), insn.csr, (uint32_t)insn.imm); return buff
|
||||
#define PRINT_rd_csr_rs1() snprintf(buff, sizeof(buff), "%s\t%s, %d, %s", insn.name, RN(rd), insn.csr, RN(rs1)); return buff
|
||||
#define PRINT_rd_csr_uimm() snprintf(buff, sizeof(buff), "%s\t%s, %d, %d", insn.name, RN(rd), insn.csr, (uint32_t)insn.imm); return buff
|
||||
|
||||
const char* rv64_print(uint32_t data, uintptr_t addr)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user