* src/vm/jit/mips/md.c: Likewise.
* src/vm/jit/mips/codegen.c: Likewise
* src/vm/jit/mips/linux/md-os.c: Likewise
* src/vm/jit/mips/disass.c: Likewise
* src/vm/jit/mips/patcher.c: Likewise
* src/vm/jit/mips/md-abi.c: Likewise
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: codegen.c 7243 2007-01-28 23:35:29Z twisti $
+ $Id: codegen.c 7252 2007-01-29 21:09:01Z twisti $
*/
#include "vm/jit/mips/arch.h"
#include "vm/jit/mips/codegen.h"
+#include "mm/memory.h"
+
#include "native/native.h"
#if defined(ENABLE_THREADS)
#endif
#include "vm/builtin.h"
-#include "vm/class.h"
#include "vm/exceptions.h"
-#include "vm/options.h"
-#include "vm/stringlocal.h"
#include "vm/vm.h"
#include "vm/jit/asmpart.h"
# include "vm/jit/allocator/lsra.h"
#endif
+#include "vmcore/class.h"
+#include "vmcore/options.h"
+
/* codegen *********************************************************************
/* src/vm/jit/mips/disass.c - primitive disassembler for MIPS machine code
- Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
+ Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
J. Wenninger, Institut f. Computersprachen - TU Wien
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Contact: cacao@cacaojvm.org
-
- Authors: Andreas Krall
-
- Changes: Christian Thalinger
-
- $Id: disass.c 4357 2006-01-22 23:33:38Z twisti $
+ $Id: disass.c 7252 2007-01-29 21:09:01Z twisti $
*/
+#include "config.h"
+
#include <stdio.h>
-#include "config.h"
#include "vm/types.h"
+#include "vm/jit/abi.h"
+
/* The disassembler uses four tables for decoding the instructions. The first
table (ops) is used to classify the instructions based on the op code and
};
-/* instruction decode table for 32 integer registers */
-
-char *regs[] = {
- /* 0x00 */ "zero", /* "$0", */
- /* 0x01 */ "at", /* "$1", */
- /* 0x02 */ "v0", /* "$2", */
- /* 0x03 */ "v1", /* "$3", */
- /* 0x04 */ "a0", /* "$4", */
- /* 0x05 */ "a1", /* "$5", */
- /* 0x06 */ "a2", /* "$6", */
- /* 0x07 */ "a3", /* "$7", */
-
- /* 0x08 */ "a4", /* "$8", */
- /* 0x09 */ "a5", /* "$9", */
- /* 0x0a */ "a6", /* "$10", */
- /* 0x0b */ "a7", /* "$11", */
- /* 0x0c */ "t0", /* "$12", */
- /* 0x0d */ "t1", /* "$13", */
- /* 0x0e */ "t2", /* "$14", */
- /* 0x0f */ "t3", /* "$15", */
-
- /* 0x10 */ "s0", /* "$16", */
- /* 0x11 */ "s1", /* "$17", */
- /* 0x12 */ "s2", /* "$18", */
- /* 0x13 */ "s3", /* "$19", */
- /* 0x14 */ "s4", /* "$20", */
- /* 0x15 */ "s5", /* "$21", */
- /* 0x16 */ "s6", /* "$22", */
- /* 0x17 */ "s7", /* "$23", */
-
- /* 0x18 */ "t8", /* "$24", */
- /* 0x19 */ "t9", /* "$25", */
- /* 0x1a */ "k0", /* "$26", */
- /* 0x1b */ "k1", /* "$27", */
- /* 0x1c */ "gp", /* "$28", */
- /* 0x1d */ "sp", /* "$29", */
- /* 0x1e */ "s8", /* "$30", */
- /* 0x1f */ "ra" /* "$31" */
-};
-
-
/* instruction decode table for 32 floating point registers */
#if 0
#include "vm/jit/mips/codegen.h"
#include "vm/jit/mips/md-abi.h"
+#include "mm/memory.h"
+
#if defined(ENABLE_THREADS)
# include "threads/native/lock.h"
#endif
+#include "vm/builtin.h"
#include "vm/exceptions.h"
-#include "vm/options.h"
#include "vm/stringlocal.h" /* XXX for gen_resolvebranch */
+
#include "vm/jit/abi-asm.h"
#include "vm/jit/asmpart.h"
#include "vm/jit/dseg.h"
#include "vm/jit/jit.h"
#include "vm/jit/replace.h"
+#include "vmcore/options.h"
+
/* emit_load *******************************************************************
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Contact: cacao@cacaojvm.org
-
- Authors: Andreas Krall
- Reinhard Grafl
- Christian Thalinger
-
- $Id: md-os.c 7206 2007-01-11 22:39:52Z twisti $
+ $Id: md-os.c 7252 2007-01-29 21:09:01Z twisti $
*/
#include "vm/jit/mips/md-abi.h"
#include "mm/gc-common.h"
+
#include "vm/exceptions.h"
-#include "vm/signallocal.h"
#include "vm/stringlocal.h"
+
#include "vm/jit/asmpart.h"
#include "vm/jit/stacktrace.h"
#endif
}
else {
- addr += (long) ((instr << 16) >> 16);
+ codegen_get_pv_from_pc(xpc);
+
+ /* this should not happen */
- throw_cacao_exception_exit(string_java_lang_InternalError,
- "faulting address: 0x%lx at 0x%lx\n",
- addr, xpc);
+ assert(0);
}
}
/* src/vm/jit/mips/md-abi.c - functions for MIPS ABI
- Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
+ Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
J. Wenninger, Institut f. Computersprachen - TU Wien
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Contact: cacao@cacaojvm.org
-
- Authors: Christian Thalinger
-
- Changes: Christian Ullrich
-
- $Id: md-abi.c 7206 2007-01-11 22:39:52Z twisti $
+ $Id: md-abi.c 7252 2007-01-29 21:09:01Z twisti $
*/
#include "vm/jit/mips/md-abi.h"
-#include "vm/descriptor.h"
#include "vm/global.h"
+
#include "vm/jit/abi.h"
+#include "vmcore/descriptor.h"
+
/* register descripton array **************************************************/
REG_END
};
+char *regs[] = {
+ "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3",
+ "a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3",
+ "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
+ "t8", "t9", "k0", "k1", "gp", "sp", "s8", "ra"
+};
+
+
s4 nregdescfloat[] = {
/* fv0, ftmp1, ftmp2, ftmp3, ft0, ft1, ft2, ft3, */
REG_RET, REG_RES, REG_RES, REG_RES, REG_TMP, REG_TMP, REG_TMP, REG_TMP,
REG_END
};
+char *regs[] = {
+ "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3",
+ "a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3",
+ "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
+ "t8", "t9", "k0", "k1", "gp", "sp", "s8", "ra"
+};
+
+
#if !defined(ENABLE_SOFT_FLOAT)
s4 nregdescfloat[] = {
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Contact: cacao@cacaojvm.org
-
- Authors: Christian Thalinger
- Edwin Steiner
-
- $Id: md.c 7233 2007-01-22 15:59:42Z twisti $
+ $Id: md.c 7252 2007-01-29 21:09:01Z twisti $
*/
#include "vm/types.h"
#include "toolbox/logging.h"
+
#include "vm/global.h"
#include "vm/vm.h"
+
#include "vm/jit/stacktrace.h"
#if !defined(NDEBUG) && defined(ENABLE_DISASSEMBLER)
-#include "vm/options.h" /* XXX debug */
+#include "vmcore/options.h" /* XXX debug */
#include "vm/jit/disass.h" /* XXX debug */
#endif
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: patcher.c 7241 2007-01-27 15:52:01Z twisti $
+ $Id: patcher.c 7252 2007-01-29 21:09:01Z twisti $
*/
#include "native/native.h"
#include "vm/builtin.h"
-#include "vm/class.h"
#include "vm/exceptions.h"
-#include "vm/field.h"
#include "vm/initialize.h"
-#include "vm/options.h"
-#include "vm/resolve.h"
-#include "vm/references.h"
#include "vm/jit/asmpart.h"
#include "vm/jit/md.h"
#include "vm/jit/patcher.h"
+#include "vmcore/class.h"
+#include "vmcore/field.h"
+#include "vmcore/options.h"
+#include "vmcore/resolve.h"
+#include "vmcore/references.h"
+
/* patcher_wrapper *************************************************************