3 --- src/cpus/memory_sh.cc.orig 2010-02-14 01:33:54.000000000 -0800
4 +++ src/cpus/memory_sh.cc 2011-07-15 01:12:18.000000000 -0700
10 + int wf = flags & FLAG_WRITEFLAG;
12 if (flags & FLAG_NOEXCEPTIONS) {
17 - fatal("Userspace tried to access non-user space memory."
18 - " TODO: cause exception! (vaddr=0x%08"PRIx32"\n",
21 + expevt = wf? EXPEVT_TLB_PROT_ST : EXPEVT_TLB_PROT_LD;
22 + sh_exception(cpu, expevt, 0, (uint32_t)vaddr);
26 /* P1,P2: Direct-mapped physical memory. */