caveat: introduce header guards
[cavatools.git] / caveat / core.h
index 4879c3eaf9e074b3fbab2f3e2083e63cde8a7ad1..58cad2227df940cf5f6bd0e8b468a8e61a9e71f0 100644 (file)
@@ -2,6 +2,7 @@
   Copyright (c) 2020 Peter Hsu.  All Rights Reserved.  See LICENCE file for details.
 */
 
+#pragma once
 
 #define sex(rd)  IR(rd).l  = IR(rd).l  << 32 >> 32
 #define zex(rd)  IR(rd).ul = IR(rd).ul << 32 >> 32
@@ -61,4 +62,3 @@ void slow_sim(struct core_t*, long max_count);
 int proxy_ecall( struct core_t* cpu );
 void proxy_csr( struct core_t* cpu, const struct insn_t* p, int which );
 void status_report(struct core_t* cpu, FILE*);
-