Statistics
| Branch: | Revision:

root / target-openrisc / exception_helper.c @ a2247f8e

History | View | Annotate | Download (981 Bytes)

1 1d7d4034 Jia Liu
/*
2 1d7d4034 Jia Liu
 * OpenRISC exception helper routines
3 1d7d4034 Jia Liu
 *
4 1d7d4034 Jia Liu
 * Copyright (c) 2011-2012 Jia Liu <proljc@gmail.com>
5 1d7d4034 Jia Liu
 *
6 1d7d4034 Jia Liu
 * This library is free software; you can redistribute it and/or
7 1d7d4034 Jia Liu
 * modify it under the terms of the GNU Lesser General Public
8 1d7d4034 Jia Liu
 * License as published by the Free Software Foundation; either
9 1d7d4034 Jia Liu
 * version 2 of the License, or (at your option) any later version.
10 1d7d4034 Jia Liu
 *
11 1d7d4034 Jia Liu
 * This library is distributed in the hope that it will be useful,
12 1d7d4034 Jia Liu
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 1d7d4034 Jia Liu
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 1d7d4034 Jia Liu
 * Lesser General Public License for more details.
15 1d7d4034 Jia Liu
 *
16 1d7d4034 Jia Liu
 * You should have received a copy of the GNU Lesser General Public
17 1d7d4034 Jia Liu
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 1d7d4034 Jia Liu
 */
19 1d7d4034 Jia Liu
20 1d7d4034 Jia Liu
#include "cpu.h"
21 1d7d4034 Jia Liu
#include "helper.h"
22 1d7d4034 Jia Liu
#include "exception.h"
23 1d7d4034 Jia Liu
24 1d7d4034 Jia Liu
void HELPER(exception)(CPUOpenRISCState *env, uint32_t excp)
25 1d7d4034 Jia Liu
{
26 dd51dc52 Andreas Färber
    OpenRISCCPU *cpu = openrisc_env_get_cpu(env);
27 1d7d4034 Jia Liu
28 1d7d4034 Jia Liu
    raise_exception(cpu, excp);
29 1d7d4034 Jia Liu
}