diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-11-06 13:22:41 -0600 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-11-06 13:24:17 -0600 |
| commit | f1fe00423df3fda0ace4222d9d5e3d1976db3964 (patch) | |
| tree | 0155ad01ad8a2ba1f18ae6cd59f3d0c912088580 /assembly/zicboztest/zicboztest.S | |
| parent | c3ca1afe6ba655b71db048b513801cd3d5acf406 (diff) | |
| download | rvcontroller-f1fe00423df3fda0ace4222d9d5e3d1976db3964.tar rvcontroller-f1fe00423df3fda0ace4222d9d5e3d1976db3964.tar.gz rvcontroller-f1fe00423df3fda0ace4222d9d5e3d1976db3964.tar.bz2 rvcontroller-f1fe00423df3fda0ace4222d9d5e3d1976db3964.tar.xz rvcontroller-f1fe00423df3fda0ace4222d9d5e3d1976db3964.zip | |
Add Zihpm and Zicboz
Diffstat (limited to 'assembly/zicboztest/zicboztest.S')
| -rw-r--r-- | assembly/zicboztest/zicboztest.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/assembly/zicboztest/zicboztest.S b/assembly/zicboztest/zicboztest.S new file mode 100644 index 0000000..c9c5289 --- /dev/null +++ b/assembly/zicboztest/zicboztest.S @@ -0,0 +1,17 @@ +li t0,0x4000 +li t1,0xdeadbeef +li t2,0x7000 +1: sw t1,0(t0) +addi t0,t0,4 +andi t3,t0,0xff +bnez t3,2f +li a7,11 +li a0,'.' +ecall +2: blt t0,t2,1b + +li a0,0x5000 +cbo.zero 0(a0) + +li a7,10 +ecall |
