X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/2409953140a979f32e0cb7cbce2517df59341958..bd6d65e32b835551677456bf286d09ced6859882:/base/regdump.c diff --git a/base/regdump.c b/base/regdump.c index 2fc0f997..89edbcd1 100644 --- a/base/regdump.c +++ b/base/regdump.c @@ -213,6 +213,7 @@ static const char *regname(char *buf, uint32 f) switch (src) { + case REGSRC_NONE: case REGSRC_ABS: return (0); @@ -803,6 +804,11 @@ void regdump(const void *base, const char *lbl, uint32 f) } switch (f®F_SRCMASK) { + + case REGSRC_NONE: + printf(";; %s\n", lbl); + return; + case REGSRC_ABS: p = base; break; @@ -857,6 +863,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);