Patchwork [2/2] sparc64: fix TT_WOTHER value

login
register
mail settings
Submitter Igor V. Kovalenko
Date May 16, 2010, 12:11 a.m.
Message ID <20100516001129.8600.45273.stgit@skyserv>
Download mbox | patch
Permalink /patch/52740/
State New
Headers show

Comments

Igor V. Kovalenko - May 16, 2010, 12:11 a.m.
From: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>

- fix off by one error in spill trap number bit for other window (must be bit 5)
- fixes invalid instruction issue with HelenOS
---
 target-sparc/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index 22f3ad0..27b020b 100644
--- a/target-sparc/cpu.h
+++ b/target-sparc/cpu.h
@@ -79,7 +79,7 @@ 
 #define TT_DPROT    0x6c
 #define TT_SPILL    0x80
 #define TT_FILL     0xc0
-#define TT_WOTHER   0x10
+#define TT_WOTHER   (1 << 5)
 #define TT_TRAP     0x100
 #endif