aboutsummaryrefslogtreecommitdiffstats
path: root/powerpc/CBuiltins.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-09-01 09:57:01 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-09-01 09:57:01 +0200
commit951963b380f1ff1e0b55f8303e4ae098cedb3cb5 (patch)
tree6cc793efe8fc8d2950d7b313bfde79b2ecf40d24 /powerpc/CBuiltins.ml
parent7cfaf10b604372044f53cb65b03df33c23f8b26d (diff)
parent3324ece265091490d5380caf753d76aeee059d3f (diff)
downloadcompcert-951963b380f1ff1e0b55f8303e4ae098cedb3cb5.tar.gz
compcert-951963b380f1ff1e0b55f8303e4ae098cedb3cb5.zip
Merge branch 'new-builtins'
Diffstat (limited to 'powerpc/CBuiltins.ml')
-rw-r--r--powerpc/CBuiltins.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/powerpc/CBuiltins.ml b/powerpc/CBuiltins.ml
index 06a7e395..75dbd23d 100644
--- a/powerpc/CBuiltins.ml
+++ b/powerpc/CBuiltins.ml
@@ -93,7 +93,12 @@ let builtins = {
"__builtin_dcbi",
(TVoid [],[TPtr(TVoid [], [])],false);
"__builtin_icbi",
- (TVoid [],[TPtr(TVoid [], [])],false)
+ (TVoid [],[TPtr(TVoid [], [])],false);
+ (* Access to special registers *)
+ "__builtin_get_spr",
+ (TInt(IUInt, []), [TInt(IInt, [])], false);
+ "__builtin_set_spr",
+ (TVoid [], [TInt(IInt, []); TInt(IUInt, [])], false)
]
}