mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 05:28:56 +02:00
A64: ADD now passes
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
adeb5a6037
commit
b23166c603
1 changed files with 3 additions and 6 deletions
|
|
@ -180,19 +180,16 @@ EmittedBlockInfo EmitPPC64(powah::Context& code, IR::Block block, const EmitConf
|
|||
}
|
||||
|
||||
// auto const cycles_to_add = block.CycleCount();
|
||||
|
||||
auto const location{ctx.block.Location()};
|
||||
auto const term = ctx.block.GetTerminal();
|
||||
EmitTerminal(code, ctx, ctx.block.GetTerminal(), ctx.block.Location(), false);
|
||||
|
||||
for (size_t i = 0; i < gpr_order.size(); ++i)
|
||||
code.LD(powah::GPR{gpr_order[i]}, powah::R1, -(i * 8));
|
||||
code.BLR();
|
||||
|
||||
/*
|
||||
llvm-objcopy -I binary -O elf64-powerpc --rename-section=.data=.text,code test.bin test.elf
|
||||
llvm-objdump -d test.elf
|
||||
llvm-objcopy -I binary -O elf64-powerpc --rename-section=.data=.text,code test.bin test.elf && llvm-objdump -d test.elf
|
||||
*/
|
||||
static FILE* fp = fopen("test.bin", "ab");
|
||||
static FILE* fp = fopen("test.bin", "wb");
|
||||
fwrite(code.base, code.offset - start_offset, sizeof(uint32_t), fp);
|
||||
|
||||
ebi.size = code.offset - start_offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue