X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/ac82eac807a9818e676c316f8afeab5cff2572cd..8f2287ef5c05d496fcb9b012629af007fe56f897:/base/regdump.c diff --git a/base/regdump.c b/base/regdump.c index d4f5fdec..c591fd5a 100644 --- a/base/regdump.c +++ b/base/regdump.c @@ -659,7 +659,7 @@ void regdump_fp(const struct regmap *map) regdump(map, 0, REGF_HEX | REGF_UNSGN | REGF_SGN | REGF_FLT | REGF_CHR | REGF_64 | REGF_32 | REGF_16 | REGF_8 | - REGSRC_SIMD | i | (6 << REGF_WDSHIFT)); + REGSRC_FP | i | (6 << REGF_WDSHIFT)); printf(";; Floating-point state:\n"); dump_fpflags(0, map->fp->fpscr); @@ -857,6 +857,13 @@ void regdump(const void *base, const char *lbl, uint32 f) case REGSRC_FP: case REGSRC_SIMD: map = (const struct regmap *)base; + if (!map->fp) { + printf(";;"); + if (lbl) printf(" %s:", lbl); + if (reg) printf(" %s =", reg); + printf(" #\n"); + return; + } if (ix == REGIX_FPSCR) { assert(!(f®F_FMTMASK)); dump_fpflags(lbl, map->fp->fpscr);