1 --- a/basis-library/mlton/platform.sig
2 +++ b/basis-library/mlton/platform.sig
6 datatype t = Alpha | AMD64 | ARM | ARM64 | HPPA | IA64 | m68k |
7 - MIPS | PowerPC | PowerPC64 | S390 | Sparc | X86
8 + MIPS | MIPS64 | PowerPC | PowerPC64 | S390 | Sparc | X86
10 val fromString: string -> t option
12 --- a/basis-library/mlton/platform.sml
13 +++ b/basis-library/mlton/platform.sml
20 (PowerPC64, "PowerPC64"),
22 --- a/basis-library/primitive/prim-mlton.sml
23 +++ b/basis-library/primitive/prim-mlton.sml
36 + | "mips64" => MIPS64
37 | "powerpc" => PowerPC
38 | "powerpc64" => PowerPC64
50 # big-endian and little-endian detect via headers
52 --- a/lib/stubs/mlton-stubs/mlton.sml
53 +++ b/lib/stubs/mlton-stubs/mlton.sml
57 datatype t = Alpha | AMD64 | ARM | ARM64 | HPPA | IA64 | m68k |
58 - MIPS | PowerPC | PowerPC64 | S390 | Sparc | X86
59 + MIPS | MIPS64 | PowerPC | PowerPC64 | S390 | Sparc | X86
61 val all = [(Alpha, "Alpha"),
69 (PowerPC64, "PowerPC64"),
71 --- a/lib/stubs/mlton-stubs/platform.sig
72 +++ b/lib/stubs/mlton-stubs/platform.sig
76 datatype t = Alpha | AMD64 | ARM | ARM64 | HPPA | IA64 | m68k |
77 - MIPS | PowerPC | PowerPC64 | S390 | Sparc | X86
78 + MIPS | MIPS64 | PowerPC | PowerPC64 | S390 | Sparc | X86
80 val fromString: string -> t option
82 --- a/mlton/main/main.fun
83 +++ b/mlton/main/main.fun
95 #include "platform/ia64.h"
96 #elif (defined (__m68k__))
97 #include "platform/m68k.h"
98 +#elif (defined (__mips64))
99 +#include "platform/mips64.h"
100 #elif (defined (__mips__))
101 #include "platform/mips.h"
102 #elif (defined (__powerpc64__))
104 +++ b/runtime/platform/mips64.h
106 +#define MLton_Platform_Arch_host "mips64"
107 --- a/runtime/platform/linux.c
108 +++ b/runtime/platform/linux.c
111 GC_handleSigProf ((code_pointer) scp->si_regs.pc);
113 -#elif (defined (__mips__))
114 +#elif (defined (__mips64)) || (defined (__mips__))
115 ucontext_t* ucp = (ucontext_t*)context;
117 GC_handleSigProf ((code_pointer) ucp->uc_mcontext.gpregs[CTX_EPC]);