aboutsummaryrefslogtreecommitdiff
path: root/target/mips/tcg/lcsr.decode
blob: 960ef8b6f99b1c0111d5836f5faba2c4a2223131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Loongson CSR instructions
#
# Copyright (C) 2023 Jiaxun Yang <jiaxun.yang@flygoat.com>
#
# SPDX-License-Identifier: LGPL-2.1-or-later
#

&r           rs rt rd sa

@rs_rd       ...... rs:5 ..... rd:5 ..... ...... &r rt=0 sa=0

CPUCFG       110010 ..... 01000 ..... 00100 011000 @rs_rd

RDCSR        110010 ..... 00000 ..... 00100 011000 @rs_rd
WRCSR        110010 ..... 00001 ..... 00100 011000 @rs_rd
DRDCSR       110010 ..... 00010 ..... 00100 011000 @rs_rd
DWRCSR       110010 ..... 00011 ..... 00100 011000 @rs_rd