Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/target/riscv/scr5.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static int scr5_jim_configure(struct target *target,
if (!goi->is_configure) {
if (goi->argc != 0)
goto cget_extra_args;
Jim_SetResultFormatted(goi->interp, "%u", pc->tlb_n_entries);
Jim_SetResultFormatted(goi->interp, "%u", pc->tlb_csr_base);
return JIM_OK;
}
e = jim_getopt_wide(goi, &w);
Expand Down Expand Up @@ -230,7 +230,9 @@ static int scr5_search_tlb(struct target *target, target_addr_t virt_addr,
for (unsigned int tlb_sel = 0; tlb_sel <= 1; ++tlb_sel) {
for (unsigned int pte_idx = 0; pte_idx < pc->tlb_n_entries; ++pte_idx) {
res = riscv_reg_set(target, tlb_scan_csr,
tlb_sel << tlb_sel_offset | pte_idx);
((riscv_reg_t)tlb_sel << tlb_sel_offset) | pte_idx);
if (res != ERROR_OK)
goto cleanup;
riscv_reg_t tlb_attr, tlb_va;
res = riscv_reg_get(target, &tlb_attr, tlb_attr_csr);
if (res != ERROR_OK)
Expand Down
2 changes: 1 addition & 1 deletion tcl/syntacore/sc_fpga_lib.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace eval _SC_INTERNALS {
en_ir
pmu_ctrs } {
set pmu_ctrs [lsort -unique $pmu_ctrs]
if {[llength pmu_ctrs] > $pmu_ctrs_max} {
if {[llength $pmu_ctrs] > $pmu_ctrs_max} {
error "too many PMU counters requested was requested"
}
set inhibit_value 0xffffffff
Expand Down
Loading