Print this page
saveargs: let disasm do the lifting
@@ -27,13 +27,10 @@
/*
* Copyright 2007 Jason King. All rights reserved.
* Use is subject to license terms.
*/
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* The sparc disassembler is mostly straightforward, each instruction is
* represented by an inst_t structure. The inst_t definitions are organized
* into tables. The tables are correspond to the opcode maps documented in the
* various sparc architecture manuals. Each table defines the bit range of the
@@ -228,10 +225,16 @@
return (pc - n*4);
}
int
+dis_instrlen(dis_handle_t *dhp, uint64_t pc)
+{
+ return (4);
+}
+
+int
dis_disassemble(dis_handle_t *dhp, uint64_t addr, char *buf, size_t buflen)
{
const table_t *tp = &initial_table;
const inst_t *inp = NULL;