projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dc6674
)
[project @ 2001-02-09 17:00:20 by sewardj]
author
sewardj
<unknown>
Fri, 9 Feb 2001 17:00:20 +0000
(17:00 +0000)
committer
sewardj
<unknown>
Fri, 9 Feb 2001 17:00:20 +0000
(17:00 +0000)
Fix the x86 side of this following the (inevitable) breakage caused by
recent sparc hackery.
ghc/compiler/ghci/ByteCodeItbls.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/ghci/ByteCodeItbls.lhs
b/ghc/compiler/ghci/ByteCodeItbls.lhs
index
2d517bb
..
280cd35
100644
(file)
--- a/
ghc/compiler/ghci/ByteCodeItbls.lhs
+++ b/
ghc/compiler/ghci/ByteCodeItbls.lhs
@@
-160,13
+160,14
@@
mkJumpToAddr a
-- B8 ZZ YY XX WW FF E0
mkJumpToAddr a
= let w32 = fromIntegral (addrToInt a)
+ insnBytes :: [Word8]
insnBytes
- = take 16 (
+ = map fromIntegral (take 16 (
[0xB8, byte 0 w32, byte 1 w32,
byte 2 w32, byte 3 w32,
0xFF, 0xE0]
++ let nops = 0x90 : nops in nops
- )
+ ))
in
insnBytes
#endif