[OSy] msim & WATCH exception

Robert Sisaj sisarian at gmail.com
Fri Oct 31 10:56:16 CET 2008


Dobry den,

chcel by som sa opytat, ci MSIM dokaze vyvolat WATCH exception. Skusal som
zapisovat do registrov WatchHi a WatchLo, aby som mohol vyvolat tuto
exception, ale nedokazem zmenit ich obsah, stale maju hodnotu 0x00000000.
Neviem, ci robim nieco zle. Skusal som to v MSIM v1.3.4.

MSIM trace:
    80001DF4    d_trace
    80001DF8    lui   v0, 0x0900        # 0x900=2304, v0: 0x4e->0x9000000
    80001DFC    ori   v0, v0, 0x0003    # v0: 0x9000000->0x9000003
    80001E00    nop
    80001E04    mtc0  v0, watchlo
    80001E08    lui   v1, 0x4900        # 0x4900=18688, v1: 0x0->0x49000000
    80001E0C    ori   v1, v1, 0x000f    # 0xfh=15, v1:
0x49000000->0x4900000f
    80001E10    nop
    80001E14    mtc0  v1, watchhi
    80001E18    nop
    80001E1C    mfc0  v0, watchlo       # v0: 0x9000003->0x0
    80001E20    nop
    80001E24    mfc0  v0, watchhi
    80001E28    ---
[msim]
    80001E2C    lui   a0, 0x8000        # 0x8000=32768, a0: 0x0->0x80000000
[msim] cpu0 cp0d
  no name       hex dump  readable dump
  00 Index      0000002F  index: 2F res: 0 p: 0
  01 Random     0000001A  random: 1A, res: 0000000
  02 EntryLo0   00000000  g: 0 v: 0 d: 0 c: 0 pfn: 000000 res: 0
  03 EntryLo1   00000000  g: 0 v: 0 d: 0 c: 0 pfn: 000000 res: 0
  04 Context    00000000  res: 0 badvpn2: 00000 ptebase: 000
  05 PageMask   00000000  res1: 0000 mask: 000 (4k) res2: 00
  06 Wired      00000000  wired: 0 res: 0000000
  08 BadVAddr   00000000  badvaddr: 00000000
  09 Count      00003116  count: 3116
  0a EntryHi    000000FF  asid: FF res: 0 vpn2: 00000
  0b Compare    00003BBD  compare: 3bbd
  0c Status     1000FF01  ie: 1 exl: 0 erl: 0 ksu: 0 ux: 0 sx: 0 kx: 0
                          im: FF de: 0 ce: 0 ch: 0 res1: 0 sr: 0 ts: 0
                          bev: 0 res2: 0 re: 0 fr: 0 rp: 0 cu: 1
  0d Cause      00000000  res1: 0 exccode: 00 res2: 0 ip: 00 res3: 00
                          ce: 0 res4: 0 bd: 0
  0e EPC        80001810  epc: 80001810
  0f PRId       00000400  rev: 00 imp: 04 res: 0000
  10 Config     00000000  k0: 0 cu: 0 db: 0 b: 0 dc: 0 ic: 0 res: 0 eb: 0
                          em: 0 be: 0 sm: 0 sc: 0 ew: 0 sw: 0 ss: 0 sb: 0
                          ep: 0 ec: 0 cm: 0
  11 LLAddr     00000000  lladdr: 00000000
  12 WatchLo    00000000  w: 0 r: 0 res: 0 paddr0: 00000000
  13 WatchHi    00000000  res: 00000000 paddr1: 0
  14 XContext
  1e ErrorEPC   00000000  errorepc: 00000000


Robert Sisaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20081031/934d3d9c/attachment.html>


More information about the NSWI004 mailing list