]>
Commit | Line | Data |
---|---|---|
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 | ||
13 | typedef struct DisasContext { | |
14 | DisasContextBase base; | |
15 | target_ulong page_start; | |
16 | uint32_t opcode; | |
17 | int mem_idx; | |
18 | } DisasContext; | |
19 | ||
20 | void generate_exception(DisasContext *ctx, int excp); | |
21 | ||
22 | extern TCGv cpu_gpr[32], cpu_pc; | |
23 | extern TCGv_i32 cpu_fscr0; | |
24 | extern TCGv_i64 cpu_fpr[32]; | |
25 | ||
26 | #endif |