Compare commits

...
Author SHA1 Message Date
Dick Porter 701861382d 2010-01-20 Dick Porter <[email protected]>
* libtool-hpfix: Copy this on top of the generated libtool script on
	hpux, to stop it adding -lc to the linker command line.  Otherwise
	the resulting binary will segfault in the first call to a pthread
	function.


svn path=/branches/dick/ia64-hpux/; revision=149893
2010-01-20 11:20:34 +00:00
Dick Porter e369ba3039 2010-01-12 Dick Porter <[email protected]>
* ia64/ia64-codegen.h: First attempt at big-endian support

2010-01-12  Dick Porter  <[email protected]>

	* exceptions-ia64.c (mono_arch_ip_from_context): Use the ia64-hpux
	library for getting ip.

2010-01-12  Dick Porter  <[email protected]>

	* dlmalloc.h: Check for more defines for ia64-hpux

	* mono-mmap.c: MADV_FREE isn't defined on ia64-hpux

2010-01-12  Dick Porter  <[email protected]>

	* get.c: ia64-hpux needs to use isfinite () even though the test
	for finite () succeeds.

2010-01-12  Dick Porter  <[email protected]>

	* serial.c: More includes for ia64-hpux



svn path=/branches/dick/ia64-hpux/; revision=149826
2010-01-19 16:51:47 +00:00
13 changed files with 9004 additions and 5 deletions

No files matched your search

+7
View File
@@ -1,3 +1,10 @@
2010-01-20 Dick Porter <[email protected]>
* libtool-hpfix: Copy this on top of the generated libtool script on
hpux, to stop it adding -lc to the linker command line. Otherwise
the resulting binary will segfault in the first call to a pthread
function.
2010-01-06 Rodrigo Kumpera <[email protected]>
* scripts/Makefile.am: Add peverify script.
Executable
+8913
View File
File diff suppressed because it is too large. Load diff
+4
View File
@@ -1,3 +1,7 @@
2010-01-12 Dick Porter <[email protected]>
* ia64/ia64-codegen.h: First attempt at big-endian support
2009-08-14 Zoltan Varga <[email protected]>
* arm/arm-codegen.h: Add armv6 MOVW/MOVT.
+23 -4
View File
@@ -120,10 +120,19 @@ typedef enum {
} Ia64ApplicationRegister;
/* disassembly */
#if G_BYTE_ORDER == G_BIG_ENDIAN
#define ia64_bundle_template(code) (GUINT64_TO_LE(*(guint64*)(gpointer)code) & 0x1f)
#define ia64_bundle_ins1(code) ((GUINT64_TO_LE(*(guint64*)(gpointer)code) >> 5) & 0x1ffffffffff)
#define ia64_bundle_ins2(code) ((GUINT64_TO_LE(*(guint64*)(gpointer)code) >> 46) | ((GUINT64_TO_LE(((guint64*)(gpointer)code)[1]) & 0x7fffff) << 18))
#define ia64_bundle_ins3(code) ((GUINT64_TO_LE(((guint64*)(gpointer)code)[1])) >> 23)
#elif G_BYTE_ORDER == G_LITTLE_ENDIAN
#define ia64_bundle_template(code) ((*(guint64*)(gpointer)code) & 0x1f)
#define ia64_bundle_ins1(code) (((*(guint64*)(gpointer)code) >> 5) & 0x1ffffffffff)
#define ia64_bundle_ins2(code) (((*(guint64*)(gpointer)code) >> 46) | ((((guint64*)(gpointer)code)[1] & 0x7fffff) << 18))
#define ia64_bundle_ins3(code) ((((guint64*)(gpointer)code)[1]) >> 23)
#else
#error "FIXME"
#endif
#define ia64_ins_opcode(ins) (((guint64)(ins)) >> 37)
#define ia64_ins_qp(ins) (((guint64)(ins)) & 0x3f)
@@ -284,10 +293,17 @@ void ia64_emit_bundle (Ia64CodegenState *code, gboolean flush);
code.dep_info [code.dep_info_pos ++] = 0; \
} while (0)
#if G_BYTE_ORDER != G_LITTLE_ENDIAN
#error "FIXME"
#endif
#if G_BYTE_ORDER == G_BIG_ENDIAN
#define ia64_emit_bundle_template(code, template, i1, i2, i3) do { \
guint64 *buf64 = (guint64*)(gpointer)(code)->buf; \
guint64 dw1, dw2; \
dw1 = GUINT64_FROM_LE ((((guint64)(template)) & 0x1f) | ((guint64)(i1) << 5) | ((((guint64)(i2)) & 0x3ffff) << 46)); \
dw2 = GUINT64_FROM_LE ((((guint64)(i2)) >> 18) | (((guint64)(i3)) << 23)); \
buf64[0] = dw1; \
buf64[1] = dw2; \
(code)->buf += 16; \
} while (0)
#elif G_BYTE_ORDER == G_LITTLE_ENDIAN
#define ia64_emit_bundle_template(code, template, i1, i2, i3) do { \
guint64 *buf64 = (guint64*)(gpointer)(code)->buf; \
guint64 dw1, dw2; \
@@ -297,6 +313,9 @@ void ia64_emit_bundle (Ia64CodegenState *code, gboolean flush);
buf64[1] = dw2; \
(code)->buf += 16; \
} while (0)
#else
#error "FIXME"
#endif
#ifdef IA64_SIMPLE_EMIT_BUNDLE
+5
View File
@@ -1,3 +1,8 @@
2010-01-12 Dick Porter <[email protected]>
* get.c: ia64-hpux needs to use isfinite () even though the test
for finite () succeeds.
2009-12-21 Rodrigo Kumpera <[email protected]>
* get.c (get_type): Don't crash if the type is not found.
+14
View File
@@ -2298,7 +2298,14 @@ get_constant (MonoImage *m, MonoTypeEnum t, guint32 blob_index)
/* Crazy solaris systems doesn't have isnormal */
#ifdef HAVE_FINITE
#ifdef HAVE_ISFINITE
/* On HPUX (ia64 at least) the test for HAVE_FINITE succeeds
* even though it doesn't exist. HAVE_ISFINITE works though.
*/
normal = isfinite (r);
#else
normal = finite (r);
#endif
#else
normal = isnormal (r);
#endif
@@ -2318,7 +2325,14 @@ get_constant (MonoImage *m, MonoTypeEnum t, guint32 blob_index)
/* Crazy solaris systems doesn't have isnormal */
#ifdef HAVE_FINITE
#ifdef HAVE_ISFINITE
/* On HPUX (ia64 at least) the test for HAVE_FINITE succeeds
* even though it doesn't exist. HAVE_ISFINITE works though.
*/
normal = isfinite (r);
#else
normal = finite (r);
#endif
#else
normal = isnormal (r);
#endif
+5
View File
@@ -1,3 +1,8 @@
2010-01-12 Dick Porter <[email protected]>
* exceptions-ia64.c (mono_arch_ip_from_context): Use the ia64-hpux
library for getting ip.
2010-01-11 Zoltan Varga <[email protected]>
* debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
+12
View File
@@ -23,6 +23,10 @@
#include <string.h>
#include <sys/ucontext.h>
#ifdef _HAVE_UC_GET_IP
#include <sys/uc_access.h>
#endif
#include <mono/arch/ia64/ia64-codegen.h>
#include <mono/metadata/appdomain.h>
#include <mono/metadata/tabledefs.h>
@@ -633,5 +637,13 @@ mono_arch_ip_from_context (void *sigctx)
{
ucontext_t *ctx = (ucontext_t*)sigctx;
#ifdef _HAVE_UC_GET_IP
guint64 ret;
__uc_get_ip (ctx, &ret);
return (gpointer)ret;
#else
return (gpointer)ctx->uc_mcontext.sc_ip;
#endif
}
+6
View File
@@ -1,3 +1,9 @@
2010-01-12 Dick Porter <[email protected]>
* dlmalloc.h: Check for more defines for ia64-hpux
* mono-mmap.c: MADV_FREE isn't defined on ia64-hpux
2010-01-03 Zoltan Varga <[email protected]>
* mono-path.c (mono_path_resolve_symlinks): Use g_strfreev () to free the
+5 -1
View File
@@ -148,9 +148,13 @@ void* dlvalloc(size_t);
*/
int dlmallopt(int, int);
#ifndef M_TRIM_THRESHOLD
#define M_TRIM_THRESHOLD (-1)
#endif
#define M_GRANULARITY (-2)
#ifndef M_MMAP_THRESHOLD
#define M_MMAP_THRESHOLD (-3)
#endif
/*
@@ -164,7 +168,7 @@ int dlmallopt(int, int);
*/
size_t dlmalloc_footprint(void);
#if !NO_MALLINFO
#if 0
/*
mallinfo()
Returns (by copy) a struct containing various summary statistics:
+2
View File
@@ -382,7 +382,9 @@ mono_mprotect (void *addr, size_t length, int flags)
memset (addr, 0, length);
#ifdef HAVE_MADVISE
madvise (addr, length, MADV_DONTNEED);
#ifdef MADV_FREE
madvise (addr, length, MADV_FREE);
#endif
#else
posix_madvise (addr, length, POSIX_MADV_DONTNEED);
#endif
+4
View File
@@ -1,3 +1,7 @@
2010-01-12 Dick Porter <[email protected]>
* serial.c: More includes for ia64-hpux
2009-12-16 Gonzalo Paniagua Javier <[email protected]>
* zlib-helper.c: when finishing uncompressing a buffer, we might need
+4
View File
@@ -20,6 +20,10 @@
#include <sys/filio.h>
#endif
/* HPUX needs this */
#include <sys/strtio.h>
#include <sys/modem.h>
/* sys/time.h (for timeval) is required when using osx 10.3 (but not 10.4) */
#ifdef __APPLE__
#include <sys/time.h>