Merge pull request #288 from tkchia/tkchia/20230708

plat/linuxppc/emu: fix fctiw & fctiwz emulation for AArch64 host
This commit is contained in:
David Given 2023-07-08 22:17:27 +02:00 committed by GitHub
commit db5a32c68c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -325,6 +325,12 @@ void dump_state(FILE* stream)
fprintf(stream, "\n"); fprintf(stream, "\n");
fprintf(stream, "gpr%02d=0x%08x ", i, cpu.gpr[i]); fprintf(stream, "gpr%02d=0x%08x ", i, cpu.gpr[i]);
} }
for (i=0; i<32; i++)
{
if ((i % 3) == 0)
fprintf(stream, "\n");
fprintf(stream, "fpr%02d=0x%016lx ", i, cpu.fpr[i]);
}
fprintf(stderr, "\n"); fprintf(stderr, "\n");
/* This might fail and cause a reentrant trap if cia is invalid, so /* This might fail and cause a reentrant trap if cia is invalid, so

View file

@ -207,5 +207,5 @@
# Floating point conversions # Floating point conversions
<63--><FRT>.....<FRB><14------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)fpr(FRB); <63--><FRT>.....<FRB><14------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)(int32_t)fpr(FRB);
<63--><FRT>.....<FRB><15------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)fpr(FRB); <63--><FRT>.....<FRB><15------>R setcr1(R, fpr(FRB)); cpu.fpr[FRT] = (uint32_t)(int32_t)fpr(FRB);