summaryrefslogtreecommitdiff
path: root/utils/libmach/vcodas.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-04-27 12:51:13 +0100
committerforsyth <forsyth@vitanuova.com>2010-04-27 12:51:13 +0100
commitd67b7dad77bb8aa973dad1f7c3ab0c309b114278 (patch)
tree6794120fb327d6de19cf05eed53f80d877781a3e /utils/libmach/vcodas.c
parent09da2e137d5eb0c940df35d989e4c31ec0654fc4 (diff)
20100427-1251
Diffstat (limited to 'utils/libmach/vcodas.c')
-rw-r--r--utils/libmach/vcodas.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/libmach/vcodas.c b/utils/libmach/vcodas.c
index ce505ea2..b31fdb3e 100644
--- a/utils/libmach/vcodas.c
+++ b/utils/libmach/vcodas.c
@@ -5,7 +5,7 @@
/* mips native disassembler */
typedef struct {
- long addr; /* pc of instr */
+ uvlong addr; /* pc of instr */
uchar op; /* bits 31-26 */
uchar rs; /* bits 25-21 */
uchar rt; /* bits 20-16 */
@@ -281,9 +281,9 @@ static char fsub[16] = {
static int
-mkinstr(Instr *i, Map *map, ulong pc)
+mkinstr(Instr *i, Map *map, uvlong pc)
{
- long w;
+ ulong w;
if (get4(map, pc, &w) < 0) {
werrstr("can't read instruction: %r");
@@ -305,6 +305,8 @@ mkinstr(Instr *i, Map *map, ulong pc)
return 1;
}
+#pragma varargck argpos bprint 2
+
static void
bprint(Instr *i, char *fmt, ...)
{
@@ -505,7 +507,7 @@ cop0(Instr *i)
}
int
-_mipscoinst(Map *map, ulong pc, char *buf, int n)
+_mipscoinst(Map *map, uvlong pc, char *buf, int n)
{
Instr i;
Opcode *o;