aboutsummaryrefslogtreecommitdiff
path: root/tcg/riscv/tcg-target-reg-bits.h
blob: 761ca0d774a625683da4846ce5ba88fa097ea601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: MIT */
/*
 * Define target-specific register size
 * Copyright (c) 2018 SiFive, Inc
 */

#ifndef TCG_TARGET_REG_BITS_H
#define TCG_TARGET_REG_BITS_H

/*
 * We don't support oversize guests.
 * Since we will only build tcg once, this in turn requires a 64-bit host.
 */
#if __riscv_xlen != 64
#error "unsupported code generation mode"
#endif
#define TCG_TARGET_REG_BITS 64

#endif