X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FByteCodeItbls.lhs;h=605ddaedf172c3cd98cc48be1bcb0d4a8e323248;hb=52f5a164e64fe5c443445cfc59345920506b4f2a;hp=519e50c852483cde719c87c6ac972db7b53465e6;hpb=400b162bb412a83da133ef7e61a527be962a071b;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/ByteCodeItbls.lhs b/ghc/compiler/ghci/ByteCodeItbls.lhs index 519e50c..605ddae 100644 --- a/ghc/compiler/ghci/ByteCodeItbls.lhs +++ b/ghc/compiler/ghci/ByteCodeItbls.lhs @@ -147,9 +147,8 @@ mkJumpToAddr a 0x8610E000 .|. (lo10 w32), 0x81C0C000, 0x01000000 ] -#endif -#if i386_TARGET_ARCH +#elif i386_TARGET_ARCH -- Let the address to jump to be 0xWWXXYYZZ. -- Generate movl $0xWWXXYYZZ,%eax ; jmp *%eax -- which is @@ -165,9 +164,8 @@ mkJumpToAddr a 0xFF, 0xE0] in insnBytes -#endif -#if alpha_TARGET_ARCH +#elif alpha_TARGET_ARCH type ItblCode = Word32 mkJumpToAddr a = [ 0xc3800000 -- br at, .+4 @@ -177,6 +175,11 @@ mkJumpToAddr a , fromIntegral (w64 .&. 0x0000FFFF) , fromIntegral ((w64 `shiftR` 32) .&. 0x0000FFFF) ] where w64 = fromIntegral (ptrToInt a) :: Word64 + +#else +type ItblCode = Word32 +mkJumpToAddr a + = undefined #endif