projects
/
riscv-isa-sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add vsetprec instruction prototype
[riscv-isa-sim.git]
/
hwacha
/
insns
/
vsetprec.h
1
uint32_t
prec
=
u
.
r
.
funct
;
2
switch
(
prec
) {
3
case
16
:
4
case
32
:
5
case
64
:
6
printf
(
"Precision set to %d bits
\n
"
,
prec
);
7
WRITE_PREC
(
prec
);
8
break
;
9
10
default
:
11
h
->
take_exception
(
HWACHA_CAUSE_ILLEGAL_CFG
,
2
);
12
break
;
13
}