diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2004-08-02 17:16:54 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2004-08-02 17:16:54 -0400 |
commit | 8f19fd2cbef2680a186bc101437b69514ad0bc1c (patch) | |
tree | b2b610aeed7d20cfba05ba2acfbd3eae5f48be76 /arch/alpha/alpha_memory.cc | |
parent | e79dee27ce744458449b4aec9e39f297aa01d984 (diff) | |
parent | 6c954de33ea598dfd356f315b3cea620acc3b8b7 (diff) | |
download | gem5-8f19fd2cbef2680a186bc101437b69514ad0bc1c.tar.xz |
merged full_cpu.ini, system.ini and devtime.c
util/ccdrv/devtime.c:
coding style
--HG--
extra : convert_revision : 972941e100ba13a2ece0986454c4a3485841d9cb
Diffstat (limited to 'arch/alpha/alpha_memory.cc')
-rw-r--r-- | arch/alpha/alpha_memory.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/alpha/alpha_memory.cc b/arch/alpha/alpha_memory.cc index 5d9a5fc6f..9f5ab185e 100644 --- a/arch/alpha/alpha_memory.cc +++ b/arch/alpha/alpha_memory.cc @@ -491,6 +491,14 @@ AlphaDTB::translate(MemReqPtr &req, bool write) const AlphaISA::mode_type mode = (AlphaISA::mode_type)DTB_CM_CM(ipr[AlphaISA::IPR_DTB_CM]); + + /* @todo this should actually be in there but for whatever reason + * Its not working at present. + */ + if (req->vaddr & (req->size - 1)) { + return Alignment_Fault; + } + if (PC_PAL(pc)) { mode = (req->flags & ALTMODE) ? (AlphaISA::mode_type)ALT_MODE_AM(ipr[AlphaISA::IPR_ALT_MODE]) |