diff options
author | Dave Airlie <airlied@redhat.com> | 2010-08-10 10:22:40 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-10 10:22:40 +1000 |
commit | abb7ac23b17d482e30693d78fbb67483d41882ce (patch) | |
tree | eeadab7a98cfcfb675a96880cc2583d4a8cc627e | |
parent | 950522528ff11f898f96fea69aa4a9cda8b6e79d (diff) |
avoid crashing on dce3.2 all reg dumps
-rw-r--r-- | avivotool.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/avivotool.c b/avivotool.c index 28f92c0..5694956 100644 --- a/avivotool.c +++ b/avivotool.c @@ -1143,15 +1143,15 @@ void radeon_cmd_regs(const char *type) /* Dump all registers that we can read. */ if (strcmp(type, "all") == 0) { - /* Attempting to read 40c8 will bring your machine down hard. */ - for (i = 0x0000; i < 0x40c8; i += 4) + for (i = 0x0000; i < 0x5bc; i += 4) SHOW_UNKNOWN_REG(i); - /* Ditto 4ff8 and 4ffc. They may be indexing registers, or they - * may just kill your system. */ - for (i = 0x40cc; i < 0x4ff8; i += 4) + for (i = 0x5dfc; i < 0x7170; i += 4) SHOW_UNKNOWN_REG(i); - /* Reading to the end of the range is also harmful. */ - for (i = 0x5000; i < 0x7ff8; i += 4) + for (i = 0x75a0; i < 0x7764; i += 4) + SHOW_UNKNOWN_REG(i); + for (i = 0x79a0; i < 0x7b64; i += 4) + SHOW_UNKNOWN_REG(i); + for (i = 0x7ec0; i < 0x8000; i += 4) SHOW_UNKNOWN_REG(i); /* dump a bunch of the MC regs */ |