Miscellaneous 32-bit fix-ups.

This commit is contained in:
Daniel Beer 2010-08-05 16:48:13 +12:00
parent c5d723e5d9
commit 636e11b626
3 changed files with 6 additions and 6 deletions

View File

@ -183,7 +183,7 @@ static int dis_format(stab_t stab, char *buf, int max_len,
}
void cproc_disassemble(cproc_t cp,
uint16_t offset, const uint8_t *data, int length)
address_t offset, const uint8_t *data, int length)
{
stab_t stab = cproc_stab(cp);
int first_line = 1;
@ -239,7 +239,7 @@ void cproc_disassemble(cproc_t cp,
}
}
void cproc_hexdump(cproc_t cp, uint16_t addr, const uint8_t *data, int data_len)
void cproc_hexdump(cproc_t cp, address_t addr, const uint8_t *data, int data_len)
{
int offset = 0;

View File

@ -23,11 +23,11 @@
#include "cproc.h"
/* Print colorized disassembly on command processor standard output */
void cproc_disassemble(cproc_t cp, uint16_t addr,
void cproc_disassemble(cproc_t cp, address_t addr,
const uint8_t *buf, int len);
/* Print colorized hexdump on standard output */
void cproc_hexdump(cproc_t cp, uint16_t addr,
void cproc_hexdump(cproc_t cp, address_t addr,
const uint8_t *buf, int len);
/* Colorized register dump */

View File

@ -697,8 +697,8 @@ static int add_irq_edges(address_t offset, address_t len, uint8_t *memory,
struct cg_edge br;
br.src = offset + i;
br.dst = ((uint16_t)memory[i]) |
(((uint16_t)memory[i + 1]) << 8);
br.dst = ((address_t)memory[i]) |
(((address_t)memory[i + 1]) << 8);
br.is_tail_call = 0;
if (vector_push(&graph->edge_from, &br, 1) < 0)