~ubuntu-branches/ubuntu/precise/qemu-kvm/precise

« back to all changes in this revision

Viewing changes to tests/lm32/test_sw.S

  • Committer: Serge Hallyn
  • Date: 2011-10-19 07:37:43 UTC
  • mfrom: (1.2.7)
  • Revision ID: serge.hallyn@ubuntu.com-20111019073743-7i7n9irsxlm38wic
Tags: 0.15.0+noroms-0ubuntu1
* New upstream release
* Remaining changes from upstream:
  - removed all binary roms and tests/pi_10.com
* Removed Detect-and-use-GCC-atomic-builtins-for-locking.patch - non-NPTL
  implementations were removed with commit
  02615337ef295443daa03233e492194e289a807e
* Drop spice-qxl-locking-fix-for-qemu-kvm.patch - should be unnecessary
  as of commit 196a778428989217b82de042725dc8eb29c8f8d8
* drop patches applied upstream:
  - CVE-2011-1751.diff
  - virtio-guard-against-negative-vq-notifies-CVE-2011-2512.diff
  - CVE-2011-2527.patch
  - fix-pa-configure.patch
* Refreshed the remaining patches:
  - larger_default_ram_size.patch
  - CVE-2011-2212-virtqueue-indirect-overflow.patch
  - qemuifup-fix-paths.patch
  - vpc.patch
* e1000-Dont-set-the-Capabilities-List-bit.patch - switched to the
  cherrypicked upstream patch (as the source file changed quite a bit,
  and the hand-ported patch backported to 0.14.1 does not apply).
* Drop qemu-kvm-spice (all changes from 0.14.1+noroms-0ubuntu7), it will
  need its own source package (LP: #878162)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.include "macros.inc"
 
2
 
 
3
start
 
4
 
 
5
test_name SW_1
 
6
load r1 data
 
7
load r2 0xaabbccdd
 
8
sw (r1+0), r2
 
9
check_mem data 0xaabbccdd
 
10
 
 
11
test_name SW_2
 
12
load r2 0x00112233
 
13
sw (r1+4), r2
 
14
check_mem data1 0x00112233
 
15
 
 
16
test_name SW_3
 
17
load r2 0x44556677
 
18
sw (r1+-4), r2
 
19
check_mem data0 0x44556677
 
20
 
 
21
test_name SW_4
 
22
sw (r1+0), r1
 
23
lw r3, (r1+0)
 
24
check_r3 data
 
25
 
 
26
end
 
27
 
 
28
.data
 
29
        .align 4
 
30
data0:
 
31
        .byte 0, 0, 0, 0
 
32
data:
 
33
        .byte 0, 0, 0, 0
 
34
data1:
 
35
        .byte 0, 0, 0, 0