mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Add AUIPC test
This commit is contained in:
parent
f917ba38ff
commit
6a4118e420
3 changed files with 32 additions and 0 deletions
|
|
@ -1,5 +1,12 @@
|
|||
#include "uvm32_target.h"
|
||||
#include "shared.h"
|
||||
|
||||
void main(void) {
|
||||
switch(syscall(SYSCALL_PICKTEST, 0, 0)) {
|
||||
case TEST1:
|
||||
asm("auipc t0, 0"); // copy pc into t0
|
||||
asm("auipc t1, 0"); // copy pc into t1
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue