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] - Rev 2

Compare with Previous | Blame | View Log

// RISC-V Compliance Test Header File
// Copyright (c) 2017, Codasip Ltd. All Rights Reserved.
// See LICENSE for license details.
//
// Description: Common header file for RV32I tests
 
#ifndef _COMPLIANCE_TEST_H
#define _COMPLIANCE_TEST_H
 
#include "riscv_test.h"
 
//-----------------------------------------------------------------------
// RV Compliance Macros
//-----------------------------------------------------------------------
 
#define RV_COMPLIANCE_HALT                                                    \
        .globl codasip_syscall;                                               \
        codasip_syscall:                                                      \
        add x15, x0, 1;                                                       \
        sw x15, codasip_syscall, t0;                                          \
 
#define RV_COMPLIANCE_RV32M                                                   \
                                                                              \
 
#define RV_COMPLIANCE_CODE_BEGIN                                              \
        .section .text.init;                                                  \
        .align  4;                                                            \
        .globl _start;                                                        \
        _start:                                                               \
 
#define RV_COMPLIANCE_CODE_END                                                \
                                                                              \
 
#define RV_COMPLIANCE_DATA_BEGIN                                              \
        .align 4;                                                             \
        .global codasip_signature_start;                                      \
        codasip_signature_start:                                              \
 
#define RV_COMPLIANCE_DATA_END                                                \
        .align 4;                                                             \
        .global codasip_signature_end;                                        \
        codasip_signature_end:
 
#endif
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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