mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-03 11:47:11 +02:00
A64: ADD now passes
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
cbfe8176e0
commit
4470c7637f
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 cycles_to_add = block.CycleCount();
|
||||||
|
EmitTerminal(code, ctx, ctx.block.GetTerminal(), ctx.block.Location(), false);
|
||||||
auto const location{ctx.block.Location()};
|
|
||||||
auto const term = ctx.block.GetTerminal();
|
|
||||||
|
|
||||||
for (size_t i = 0; i < gpr_order.size(); ++i)
|
for (size_t i = 0; i < gpr_order.size(); ++i)
|
||||||
code.LD(powah::GPR{gpr_order[i]}, powah::R1, -(i * 8));
|
code.LD(powah::GPR{gpr_order[i]}, powah::R1, -(i * 8));
|
||||||
code.BLR();
|
code.BLR();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
llvm-objcopy -I binary -O elf64-powerpc --rename-section=.data=.text,code test.bin test.elf
|
llvm-objcopy -I binary -O elf64-powerpc --rename-section=.data=.text,code test.bin test.elf && llvm-objdump -d 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);
|
fwrite(code.base, code.offset - start_offset, sizeof(uint32_t), fp);
|
||||||
|
|
||||||
ebi.size = code.offset - start_offset;
|
ebi.size = code.offset - start_offset;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue