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 342

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 <_ansi.h>
10
#include <stddef.h>
11
#include <limits.h>
12
 
13
#if OR1K
14
void printf(const char *fmt, ...);
15
 
16
/* For writing into SPR. */
17
void mtspr(unsigned long spr, unsigned long value);
18
 
19
/* For reading SPR. */
20
unsigned long mfspr(unsigned long spr);
21
 
22
#else /* OR1K */
23
 
24
#include <stdio.h>
25
 
26
#endif /* OR1K */
27
 
28
/* Function to be called at entry point - not defined here.  */
29
int main ();
30
 
31
/* Prints out a value */
32
void report(unsigned long value);
33
 
34
/* return value by making a syscall */
35
extern void exit (int i) __attribute__ ((__noreturn__));
36
 
37
/* memcpy clone */
38
extern void *memcpy (void *__restrict __dest,
39
                     __const void *__restrict __src, size_t __n);
40
 
41
/* Timer functions */
42
extern void start_timer(int);
43
extern unsigned int read_timer(int);
44
 
45 342 markom
extern unsigned long excpt_buserr;
46
extern unsigned long excpt_dpfault;
47
extern unsigned long excpt_ipfault;
48
extern unsigned long excpt_lpint;
49
extern unsigned long excpt_align;
50
extern unsigned long excpt_illinsn;
51
extern unsigned long excpt_hpint;
52
extern unsigned long excpt_dtlbmiss;
53
extern unsigned long excpt_itlbmiss;
54
extern unsigned long excpt_range;
55
extern unsigned long excpt_syscall;
56
extern unsigned long excpt_break;
57
extern unsigned long excpt_trap;
58
 
59 226 markom
#endif

powered by: WebSVN 2.1.0

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