OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [testsuite/] [libsim.tests/] [upcalls.exp] - Blame information for rev 251

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 93 jeremybenn
# upcalls.exp. Test of the library upcall functions
2
 
3
# Copyright (C) 2010 Embecosm Limited
4
 
5
# Contributor Jeremy Bennett 
6
 
7
# This file is part of OpenRISC 1000 Architectural Simulator.
8
 
9
# This program is free software; you can redistribute it and/or modify it
10
# under the terms of the GNU General Public License as published by the Free
11
# Software Foundation; either version 3 of the License, or (at your option)
12
# any later version.
13
 
14
# This program is distributed in the hope that it will be useful, but WITHOUT
15
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
17
# more details.
18
 
19
# You should have received a copy of the GNU General Public License along
20
# with this program.  If not, see .  */
21
 
22
# -----------------------------------------------------------------------------
23
# This code is commented throughout for use with Doxygen.
24
# -----------------------------------------------------------------------------
25
 
26
 
27
# Run the basic upcall test
28
run_libsim "upcalls - basic"                                       \
29
    [list "Initalization succeeded."                               \
30
          "Setting alignment exception handler."                   \
31
          "Writing registers."                                     \
32
          "Wrote byte at 0x98000000 = 0xde."                       \
33
          "Wrote byte at 0x98000001 = 0xad."                       \
34
          "Wrote byte at 0x98000002 = 0xbe."                       \
35
          "Wrote byte at 0x98000003 = 0xef."                       \
36
          "Wrote half word at 0x98000004 = 0xbaad."                \
37
          "Wrote half word at 0x98000006 = 0xf00d."                \
38
          "Wrote full word at 0x98000008 = 0xcafebabe."            \
39
          "Reading registers."                                     \
40
          "Read full word at 0x98000000 = 0xdeadbeef."             \
41
          "Read byte at 0x98000004 = 0xba."                        \
42
          "Read byte at 0x98000005 = 0xad."                        \
43
          "Read byte at 0x98000006 = 0xf0."                        \
44
          "Read byte at 0x98000007 = 0x0d."                        \
45
          "Read half word at 0x98000008 = 0xcafe."                 \
46
          "Read half word at 0x9800000a = 0xbabe."                 \
47
          "All done."                                              \
48 220 jeremybenn
          "report(0xdeaddead);"]                                   \
49 93 jeremybenn
    "lib-upcalls/lib-upcalls" "upcalls.cfg" "upcalls/upcall-basic" \
50
    "14" "32"
51
 
52
# Run the misalignment upcall test
53
run_libsim "upcalls - misaligned"                                       \
54
    [list "Initalization succeeded."                                    \
55
          "Setting alignment exception handler."                        \
56
          "Writing registers."                                          \
57
          "Wrote byte at 0x98000000 = 0xde."                            \
58
          "Wrote half word at 0x98000002 = 0xdead."                     \
59
          "Writing half word at 0x98000005: misalignment exception."    \
60
          "Wrote full word at 0x98000008 = 0xdeadbeef."                 \
61
          "Writing full word at 0x9800000d: misalignment exception."    \
62
          "Writing full word at 0x98000012: misalignment exception."    \
63
          "Writing full word at 0x98000017: misalignment exception."    \
64
          "Wrote full word at 0x9800001c = 0xbaadbabe."                 \
65
          "Reading registers."                                          \
66
          "Read byte at 0x98000000 = 0xde."                             \
67
          "Read half word at 0x98000002 = 0xdead."                      \
68
          "Reading half word at 0x98000005: misalignment exception."    \
69
          "Read full word at 0x98000008 = 0xdeadbeef."                  \
70
          "Reading full word at 0x9800000d: misalignment exception."    \
71
          "Reading full word at 0x98000012: misalignment exception."    \
72
          "Reading full word at 0x98000017: misalignment exception."    \
73
          "Read full word at 0x9800001c = 0xbaadbabe."                  \
74 220 jeremybenn
          "report(0xdeaddead);"]                                        \
75 93 jeremybenn
    "lib-upcalls/lib-upcalls" "upcalls.cfg" "upcalls/upcall-misaligned" \
76
    "8" "32"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.