Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / legion / src / procs / sunsparc / libniagara / niagara_err_trap.c
CommitLineData
920dae64
AT
1/*
2* ========== Copyright Header Begin ==========================================
3*
4* OpenSPARC T2 Processor File: niagara_err_trap.c
5* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
6* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES.
7*
8* The above named program is free software; you can redistribute it and/or
9* modify it under the terms of the GNU General Public
10* License version 2 as published by the Free Software Foundation.
11*
12* The above named program is distributed in the hope that it will be
13* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15* General Public License for more details.
16*
17* You should have received a copy of the GNU General Public
18* License along with this work; if not, write to the Free Software
19* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
20*
21* ========== Copyright Header End ============================================
22*/
23/*
24 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
26 */
27#pragma ident "@(#)niagara_err_trap.c 1.4 06/08/11 SMI"
28
29
30#include <stdio.h>
31#include <stdlib.h>
32#include <unistd.h>
33#include <string.h> /* memcpy/memset */
34#include <strings.h>
35#include <thread.h>
36
37#include "basics.h"
38#include "fatal.h"
39#include "allocate.h"
40#include "strutil.h"
41#include "lexer.h"
42#include "simcore.h"
43#include "config.h"
44#include "tsparcv9.h"
45#include "tsparcv9internal.h"
46
47
48
49/*
50 * Error trap generation not supported on Niagara. Do Nothing.
51 */
52void ss_error_trap_proc_init(config_proc_t * config_procp) {
53 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
54 return;
55}
56void ss_error_trap_strand_init(config_proc_t * config_procp, simcpu_t * sp) {
57 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
58 return;
59}
60void ss_check_error_traps(simcpu_t * sp) {
61 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
62 return;
63}
64void ss_error_taking_trap( simcpu_t * sp, sparcv9_trap_type_t trap_type ) {
65 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
66 return;
67}
68void ss_error_asi_parse(void * procp, bool_t is_reload) {
69 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
70 return;
71}
72void ss_error_event_parse(void * procp, bool_t is_reload) {
73 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
74 return;
75}
76bool_t trigger_error_trap(simcpu_t * sp) {
77 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
78 return false;
79}
80void ss_error_reload_file(config_proc_t * procp) {
81 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
82 return;
83}
84void ss_error_parse_filename(void * procp) {
85 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
86 return;
87}
88void ss_error_dump_active(void * procp) {
89 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
90 return;
91}
92void ss_error_dump_supported(void * procp) {
93 FIXME_WARNING(("Error trap generation not supported on Niagara\n"));
94 return;
95}
96bool_t n1_sp_interrupt(simcpu_t * sp, uint64_t intr_level, char * error_name) {
97 FIXME_WARNING(("Error trap generation not supported on Niagara\n" \
98 "\terror name = %s, intr_level = %d\n",
99 error_name, intr_level));
100 return false;
101}