Skip to content

Commit

Permalink
area(StoreUnit): source from StoreMisalignBuffer don't need store uop…
Browse files Browse the repository at this point in the history
….imm(32bits), because can use vaddr directly
  • Loading branch information
jin120811 committed Oct 29, 2024
1 parent f1b784f commit a592590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/xiangshan/mem/pipeline/StoreUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class StoreUnit(implicit p: Parameters) extends XSModule
val s0_vecBaseVaddr = s0_vecstin.basevaddr

// generate addr
val s0_saddr = s0_stin.src(0) + SignExt(s0_uop.imm(11,0), VAddrBits)
val s0_saddr = s0_stin.src(0) + SignExt(s0_stin.uop.imm(11,0), VAddrBits)
val s0_fullva = Wire(UInt(XLEN.W))
val s0_vaddr = Mux(
s0_use_flow_ma,
Expand All @@ -143,7 +143,7 @@ class StoreUnit(implicit p: Parameters) extends XSModule
)
s0_fullva := Mux(
s0_use_flow_rs,
s0_stin.src(0) + SignExt(s0_uop.imm(11,0), XLEN),
s0_stin.src(0) + SignExt(s0_stin.uop.imm(11,0), XLEN),
Mux(
s0_use_flow_vec,
s0_vecstin.vaddr,
Expand Down

0 comments on commit a592590

Please sign in to comment.