summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-07-30 17:13:24 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-07-30 17:13:24 -0400
commitb376c6f4204f0c9de448bea1f610feef10f89929 (patch)
tree98c7a58119cf30bc663b3d2bfd8102cc685c44c9 /arch
parent46d3c406753d124587ccc53acc0146a7fb5f960c (diff)
downloadgem5-b376c6f4204f0c9de448bea1f610feef10f89929.tar.xz
Added debug printk support
arch/alpha/ev5.hh: Added max address PAL code can be at arch/alpha/vtophys.cc: Check max address pal can be at so we don't do the wrong conversion if gdb asks for an unaligned access. --HG-- extra : convert_revision : b44f6a8fcd8582337a7d4033f28137c7e718a6a8
Diffstat (limited to 'arch')
-rw-r--r--arch/alpha/ev5.hh1
-rw-r--r--arch/alpha/vtophys.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/alpha/ev5.hh b/arch/alpha/ev5.hh
index 5b27dd3dc..f49eadeb0 100644
--- a/arch/alpha/ev5.hh
+++ b/arch/alpha/ev5.hh
@@ -123,5 +123,6 @@
#define PAL_BASE 0x4000
+#define PAL_MAX 0x10000
#endif //__EV5_H__
diff --git a/arch/alpha/vtophys.cc b/arch/alpha/vtophys.cc
index 464ed41e6..5468d4b07 100644
--- a/arch/alpha/vtophys.cc
+++ b/arch/alpha/vtophys.cc
@@ -98,7 +98,7 @@ vtophys(ExecContext *xc, Addr vaddr)
Addr paddr = 0;
//@todo Andrew couldn't remember why he commented some of this code
//so I put it back in. Perhaps something to do with gdb debugging?
- if (PC_PAL(vaddr)) {
+ if (PC_PAL(vaddr) && (vaddr < PAL_MAX)) {
paddr = vaddr & ~ULL(1);
} else {
if (vaddr >= ALPHA_K0SEG_BASE && vaddr <= ALPHA_K0SEG_END) {