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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_63/] [or1ksim/] [testbench/] [support/] [support.h] - Blame information for rev 381

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 226 markom
/* Support file for or32 tests.  This file should is included
2
   in each test. It calls main() function and add support for
3
   basic functions */
4
 
5
#ifndef SUPPORT_H
6
#define SUPPORT_H
7
 
8
#include <stdarg.h>
9
#include <stddef.h>
10
#include <limits.h>
11
 
12
#if OR1K
13 381 markom
#include <_ansi.h>
14
 
15 226 markom
void printf(const char *fmt, ...);
16
 
17
/* For writing into SPR. */
18
void mtspr(unsigned long spr, unsigned long value);
19
 
20
/* For reading SPR. */
21
unsigned long mfspr(unsigned long spr);
22
 
23
#else /* OR1K */
24
 
25
#include <stdio.h>
26
 
27
#endif /* OR1K */
28
 
29
/* Function to be called at entry point - not defined here.  */
30
int main ();
31
 
32
/* Prints out a value */
33
void report(unsigned long value);
34
 
35
/* return value by making a syscall */
36
extern void exit (int i) __attribute__ ((__noreturn__));
37
 
38
/* memcpy clone */
39
extern void *memcpy (void *__restrict __dest,
40
                     __const void *__restrict __src, size_t __n);
41
 
42
/* Timer functions */
43
extern void start_timer(int);
44
extern unsigned int read_timer(int);
45
 
46 342 markom
extern unsigned long excpt_buserr;
47
extern unsigned long excpt_dpfault;
48
extern unsigned long excpt_ipfault;
49
extern unsigned long excpt_lpint;
50
extern unsigned long excpt_align;
51
extern unsigned long excpt_illinsn;
52
extern unsigned long excpt_hpint;
53
extern unsigned long excpt_dtlbmiss;
54
extern unsigned long excpt_itlbmiss;
55
extern unsigned long excpt_range;
56
extern unsigned long excpt_syscall;
57
extern unsigned long excpt_break;
58
extern unsigned long excpt_trap;
59
 
60 226 markom
#endif

powered by: WebSVN 2.1.0

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