Skip to content

Commit

Permalink
[SRC] Bump insitu-cache to latest version for VCS flow fix. Update th…
Browse files Browse the repository at this point in the history
…e peripheral header file for new CSRs.
  • Loading branch information
DiyouS committed Nov 25, 2024
1 parent 7ba8b26 commit c2f1992
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: 0.3.8 }
riscv-dbg: { git: "https://github.com/pulp-platform/riscv-dbg.git", version: 0.7.0 }
tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: 0.2.11 }
insitu-cache: { git: "[email protected]:flamingo/spatz_cache_wrapper.git", rev: b0fe2dfd }
insitu-cache: { git: "[email protected]:flamingo/spatz_cache_wrapper.git", rev: Diyou/elb-fix }

export_include_dirs:
- hw/ip/reqrsp_interface/include
Expand Down
19 changes: 14 additions & 5 deletions sw/snRuntime/include/spatz_cluster_peripheral.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,17 @@ extern "C" {
.index = \
SPATZ_CLUSTER_PERIPHERAL_CLUSTER_BOOT_CONTROL_ENTRY_POINT_OFFSET})

// End of computation and exit status register
#define SPATZ_CLUSTER_PERIPHERAL_CLUSTER_EOC_EXIT_REG_OFFSET 0x60
#define SPATZ_CLUSTER_PERIPHERAL_CLUSTER_EOC_EXIT_EOC_EXIT_MASK 0xffffffff
#define SPATZ_CLUSTER_PERIPHERAL_CLUSTER_EOC_EXIT_EOC_EXIT_OFFSET 0
#define SPATZ_CLUSTER_PERIPHERAL_CLUSTER_EOC_EXIT_EOC_EXIT_FIELD \
((bitfield_field32_t){ \
.mask = SPATZ_CLUSTER_PERIPHERAL_CLUSTER_EOC_EXIT_EOC_EXIT_MASK, \
.index = SPATZ_CLUSTER_PERIPHERAL_CLUSTER_EOC_EXIT_EOC_EXIT_OFFSET})

// Controls the configurations of L1 DCache SPM size.
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_SPM_REG_OFFSET 0x60
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_SPM_REG_OFFSET 0x68
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_SPM_SPM_SIZE_MASK 0x3ff
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_SPM_SPM_SIZE_OFFSET 0
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_SPM_SPM_SIZE_FIELD \
Expand All @@ -202,7 +211,7 @@ extern "C" {
.index = SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_SPM_SPM_SIZE_OFFSET})

// Controls the L1 DCache flushing and invalidation.
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_INSN_REG_OFFSET 0x68
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_INSN_REG_OFFSET 0x70
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_INSN_INSN_MASK 0x3
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_INSN_INSN_OFFSET 0
#define SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_INSN_INSN_FIELD \
Expand All @@ -211,15 +220,15 @@ extern "C" {
.index = SPATZ_CLUSTER_PERIPHERAL_CFG_L1D_INSN_INSN_OFFSET})

// Controls the L1 DCache flushing and invalidation.
#define SPATZ_CLUSTER_PERIPHERAL_L1D_SPM_COMMIT_REG_OFFSET 0x70
#define SPATZ_CLUSTER_PERIPHERAL_L1D_SPM_COMMIT_REG_OFFSET 0x78
#define SPATZ_CLUSTER_PERIPHERAL_L1D_SPM_COMMIT_COMMIT_BIT 0

// Controls the L1 DCache flushing and invalidation.
#define SPATZ_CLUSTER_PERIPHERAL_L1D_INSN_COMMIT_REG_OFFSET 0x78
#define SPATZ_CLUSTER_PERIPHERAL_L1D_INSN_COMMIT_REG_OFFSET 0x80
#define SPATZ_CLUSTER_PERIPHERAL_L1D_INSN_COMMIT_COMMIT_BIT 0

// Indicate the status of flushing
#define SPATZ_CLUSTER_PERIPHERAL_L1D_FLUSH_STATUS_REG_OFFSET 0x80
#define SPATZ_CLUSTER_PERIPHERAL_L1D_FLUSH_STATUS_REG_OFFSET 0x88
#define SPATZ_CLUSTER_PERIPHERAL_L1D_FLUSH_STATUS_STATUS_BIT 0

#ifdef __cplusplus
Expand Down

0 comments on commit c2f1992

Please sign in to comment.