Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: md.c 7596 2007-03-28 21:05:53Z twisti $
+ $Id: md.c 7968 2007-05-25 15:05:04Z twisti $
*/
if ((mcode >> 16) == 0x3c19) {
/* XXX write a regression for this */
+ pa = NULL;
assert(0);
/* get displacement of first instruction (addis) */
assert((mcode >> 16) != 0x6739);
offset += (s2) (mcode & 0x0000ffff);
-
- } else {
+ }
+ else {
/* get the offset from the instruction */
offset = (s2) (mcode & 0x0000ffff);
/* get the final data segment address */
pa = sfi->pv + offset;
-
- } else if ((mcode >> 16) == 0x81ac) {
+ }
+ else if ((mcode >> 16) == 0x81ac) {
/* in this case we use the passed method pointer */
/* return NULL if no mptr was specified (used for replacement) */
return NULL;
pa = mptr + offset;
-
- } else {
+ }
+ else {
/* catch any problems */
- assert(0);
+ vm_abort("md_get_method_patch_address: unknown instruction %x",
+ mcode);
+
+ /* keep compiler happy */
+
+ pa = NULL;
}
}