Skip to content

Commit 8ee6eed

Browse files
committed
Xqci extension: delete qc.flags CSR
Signed-off-by: Albert Yosher <[email protected]>
1 parent 4b5cbdb commit 8ee6eed

File tree

6 files changed

+18
-87
lines changed

6 files changed

+18
-87
lines changed

cfgs/qc_iu/arch_overlay/csr/Xqci/qc_flags.yaml

Lines changed: 0 additions & 81 deletions
This file was deleted.

cfgs/qc_iu/arch_overlay/ext/Xqci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ versions:
155155
- Rename qc.sllsat -> qc.shlusat
156156
- Add requirement to include Zca extension for Xqcisim since it has 16-bit instructions
157157
- Add requirement to include Zca extension for Xqcisync since it has 16-bit instructions
158+
- Remove qc.flags CSR
158159
implies:
159160
- [Xqcia, "0.4.0"]
160161
- [Xqciac, "0.2.0"]
@@ -163,7 +164,7 @@ versions:
163164
- [Xqcicli, "0.2.0"]
164165
- [Xqcicm, "0.2.0"]
165166
- [Xqcics, "0.2.0"]
166-
- [Xqcicsr, "0.2.0"]
167+
- [Xqcicsr, "0.3.0"]
167168
- [Xqciint, "0.2.0"]
168169
- [Xqcilb, "0.2.0"]
169170
- [Xqcili, "0.2.0"]

cfgs/qc_iu/arch_overlay/ext/Xqcicsr.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ versions:
2828
2929
changes:
3030
- Add information about instruction formats of each instruction
31+
- version: "0.3.0"
32+
state: frozen
33+
ratification_date: null
34+
contributors:
35+
- name: Albert Yosher
36+
company: Qualcomm Technologies, Inc.
37+
38+
- name: Derek Hower
39+
company: Qualcomm Technologies, Inc.
40+
41+
changes:
42+
- Remove qc.flags CSR
3143
description: |
3244
The Xqcicsr extension contains two instructions to read/write CSR which index is in register and not immediate.
3345

cfgs/qc_iu/arch_overlay/inst/Xqci/qc.c.mienter.nest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ operation(): |
2525
XReg mepc_val = CSR[mepc].sw_read();
2626
XReg mnepc_val = CSR[qc_mnepc].sw_read();
2727
XReg mcause_val = CSR[mcause].sw_read();
28-
XReg flags_val = CSR[qc_flags].sw_read();
28+
XReg reserved_val = 0;
2929
if (CSR[mcause].NMI != 1'b1) {
3030
write_memory<32>(virtual_address - 4, mepc_val, $encoding);
3131
} else {
@@ -34,7 +34,7 @@ operation(): |
3434
write_memory<32>(virtual_address - 8, X[ 8][31:0], $encoding);
3535
write_memory<32>(virtual_address - 12, mcause_val, $encoding);
3636
write_memory<32>(virtual_address - 16, X[ 1][31:0], $encoding);
37-
write_memory<32>(virtual_address - 20, flags_val, $encoding);
37+
write_memory<32>(virtual_address - 20, reserved_val, $encoding);
3838
write_memory<32>(virtual_address - 24, X[ 5][31:0], $encoding);
3939
write_memory<32>(virtual_address - 28, X[ 6][31:0], $encoding);
4040
write_memory<32>(virtual_address - 32, X[ 7][31:0], $encoding);

cfgs/qc_iu/arch_overlay/inst/Xqci/qc.c.mienter.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ operation(): |
2727
XReg mepc_val = CSR[mepc].sw_read();
2828
XReg mnepc_val = CSR[qc_mnepc].sw_read();
2929
XReg mcause_val = CSR[mcause].sw_read();
30-
XReg flags_val = CSR[qc_flags].sw_read();
30+
XReg reserved_val = 0;
3131
if (CSR[mcause].NMI != 1'b1) {
3232
write_memory<32>(virtual_address - 4, mepc_val, $encoding);
3333
} else {
@@ -36,7 +36,7 @@ operation(): |
3636
write_memory<32>(virtual_address - 8, X[ 8][31:0], $encoding);
3737
write_memory<32>(virtual_address - 12, mcause_val, $encoding);
3838
write_memory<32>(virtual_address - 16, X[ 1][31:0], $encoding);
39-
write_memory<32>(virtual_address - 20, flags_val, $encoding);
39+
write_memory<32>(virtual_address - 20, reserved_val, $encoding);
4040
write_memory<32>(virtual_address - 24, X[ 5][31:0], $encoding);
4141
write_memory<32>(virtual_address - 28, X[ 6][31:0], $encoding);
4242
write_memory<32>(virtual_address - 32, X[ 7][31:0], $encoding);

cfgs/qc_iu/arch_overlay/inst/Xqci/qc.c.mileaveret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ operation(): |
3333
X[ 8] = read_memory<32>(virtual_address - 8, $encoding);
3434
CSR[mcause].sw_write(read_memory<32>(virtual_address - 12, $encoding));
3535
X[ 1] = read_memory<32>(virtual_address - 16, $encoding);
36-
CSR[qc_flags].sw_write(read_memory<32>(virtual_address - 20, $encoding));
3736
X[ 5] = read_memory<32>(virtual_address - 24, $encoding);
3837
X[ 6] = read_memory<32>(virtual_address - 28, $encoding);
3938
X[ 7] = read_memory<32>(virtual_address - 32, $encoding);

0 commit comments

Comments
 (0)