OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [riscv-target/] [Codasip-simulator/] [compliance_test.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
// RISC-V Compliance Test Header File
2
// Copyright (c) 2017, Codasip Ltd. All Rights Reserved.
3
// See LICENSE for license details.
4
//
5
// Description: Common header file for RV32I tests
6
 
7
#ifndef _COMPLIANCE_TEST_H
8
#define _COMPLIANCE_TEST_H
9
 
10
#include "riscv_test.h"
11
 
12
//-----------------------------------------------------------------------
13
// RV Compliance Macros
14
//-----------------------------------------------------------------------
15
 
16
#define RV_COMPLIANCE_HALT                                                    \
17
        .globl codasip_syscall;                                               \
18
        codasip_syscall:                                                      \
19
        add x15, x0, 1;                                                       \
20
        sw x15, codasip_syscall, t0;                                          \
21
 
22
#define RV_COMPLIANCE_RV32M                                                   \
23
                                                                              \
24
 
25
#define RV_COMPLIANCE_CODE_BEGIN                                              \
26
        .section .text.init;                                                  \
27
        .align  4;                                                            \
28
        .globl _start;                                                        \
29
        _start:                                                               \
30
 
31
#define RV_COMPLIANCE_CODE_END                                                \
32
                                                                              \
33
 
34
#define RV_COMPLIANCE_DATA_BEGIN                                              \
35
        .align 4;                                                             \
36
        .global codasip_signature_start;                                      \
37
        codasip_signature_start:                                              \
38
 
39
#define RV_COMPLIANCE_DATA_END                                                \
40
        .align 4;                                                             \
41
        .global codasip_signature_end;                                        \
42
        codasip_signature_end:
43
 
44
#endif
45
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.