]> git.proxmox.com Git - mirror_qemu.git/blame - target/loongarch/translate.h
target/loongarch: Add main translation routines
[mirror_qemu.git] / target / loongarch / translate.h
CommitLineData
f8da88d7
SG
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * LoongArch translation routines.
4 *
5 * Copyright (c) 2021 Loongson Technology Corporation Limited
6 */
7
8#ifndef TARGET_LOONGARCH_TRANSLATE_H
9#define TARGET_LOONGARCH_TRANSLATE_H
10
11#include "exec/translator.h"
12
13typedef struct DisasContext {
14 DisasContextBase base;
15 target_ulong page_start;
16 uint32_t opcode;
17 int mem_idx;
18} DisasContext;
19
20void generate_exception(DisasContext *ctx, int excp);
21
22extern TCGv cpu_gpr[32], cpu_pc;
23extern TCGv_i32 cpu_fscr0;
24extern TCGv_i64 cpu_fpr[32];
25
26#endif