2021-02-26 07:39:20 +00:00
|
|
|
/*
|
|
|
|
* QEMU RISC-V CPU -- internal functions and types
|
|
|
|
*
|
|
|
|
* Copyright (c) 2020 T-Head Semiconductor Co., Ltd. All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
|
|
* version 2 or later, as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with
|
|
|
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RISCV_CPU_INTERNALS_H
|
|
|
|
#define RISCV_CPU_INTERNALS_H
|
|
|
|
|
|
|
|
#include "hw/registerfields.h"
|
|
|
|
|
2021-02-26 07:44:17 +00:00
|
|
|
/* share data between vector helpers and decode code */
|
|
|
|
FIELD(VDATA, MLEN, 0, 8)
|
|
|
|
FIELD(VDATA, VM, 8, 1)
|
|
|
|
FIELD(VDATA, LMUL, 9, 2)
|
|
|
|
FIELD(VDATA, NF, 11, 4)
|
2021-02-26 14:47:27 +00:00
|
|
|
FIELD(VDATA, WD, 11, 1)
|
2021-02-26 07:44:17 +00:00
|
|
|
|
2021-02-26 07:39:20 +00:00
|
|
|
#endif
|