--- trunk/src/cpus/cpu_ia64_instr.c 2007/10/08 16:19:23 20 +++ trunk/src/cpus/cpu_ia64_instr.c 2007/10/08 16:19:56 24 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005 Anders Gavare. All rights reserved. + * Copyright (C) 2005-2006 Anders Gavare. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: cpu_ia64_instr.c,v 1.2 2005/11/06 22:41:12 debug Exp $ + * $Id: cpu_ia64_instr.c,v 1.6 2006/02/24 01:20:35 debug Exp $ * * IA64 instructions. * @@ -75,8 +75,6 @@ X(to_be_translated) { uint64_t addr, low_pc; - struct ia64_vph_page *vph_p; - unsigned char *page; unsigned char ib[16]; /* Figure out the (virtual) address of the instruction: */ @@ -90,17 +88,6 @@ /* Read the instruction word from memory: */ #if 0 - if ((addr >> _TOPSHIFT) == 0) { - vph_p = cpu->cd.alpha.vph_table0[(addr >> - ALPHA_LEVEL0_SHIFT) & 8191]; - page = vph_p->host_load[(addr >> ALPHA_LEVEL1_SHIFT) & 8191]; - } else if ((addr >> ALPHA_TOPSHIFT) == ALPHA_TOP_KERNEL) { - vph_p = cpu->cd.alpha.vph_table0_kernel[(addr >> - ALPHA_LEVEL0_SHIFT) & 8191]; - page = vph_p->host_load[(addr >> ALPHA_LEVEL1_SHIFT) & 8191]; - } else - page = NULL; - if (page != NULL) { /* fatal("TRANSLATION HIT!\n"); */ memcpy(ib, page + (addr & 8191), sizeof(ib)); @@ -121,8 +108,7 @@ #undef DYNTRANS_TO_BE_TRANSLATED_HEAD -fatal("[ UNIMPLEMENTED IA64 instruction ]\n"); -goto bad; +/* TODO */ #define DYNTRANS_TO_BE_TRANSLATED_TAIL