]> Git Repo - qemu.git/blame - target/nios2/op_helper.c
*: Use fprintf between qemu_log_trylock/unlock
[qemu.git] / target / nios2 / op_helper.c
CommitLineData
032c76bc
CW
1/*
2 * Altera Nios II helper routines.
3 *
4 * Copyright (C) 2012 Chris Wulff <[email protected]>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see
18 * <http://www.gnu.org/licenses/lgpl-2.1.html>
19 */
20
9d808657 21#include "qemu/osdep.h"
032c76bc
CW
22#include "cpu.h"
23#include "exec/helper-proto.h"
23cecc27 24#include "exec/exec-all.h"
c0d24e7f 25#include "qemu/main-loop.h"
032c76bc 26
032c76bc
CW
27void helper_raise_exception(CPUNios2State *env, uint32_t index)
28{
29a0af61 29 CPUState *cs = env_cpu(env);
032c76bc
CW
30 cs->exception_index = index;
31 cpu_loop_exit(cs);
32}
This page took 0.235591 seconds and 4 git commands to generate.