Skip to content

Commit

Permalink
riscv32: Fixed a typo in one of the comments in `riscv32_abstract_mem…
Browse files Browse the repository at this point in the history
…_read()`
  • Loading branch information
dragonmux committed Nov 14, 2023
1 parent 747b6f9 commit 9b200e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/riscv32.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ uint32_t riscv32_pack_data(const void *const src, const uint8_t access_width)
static void riscv32_abstract_mem_read(
riscv_hart_s *const hart, void *const dest, const target_addr_t src, const size_t len)
{
/* Figure out the maxmial width of access to perform, up to the bitness of the target */
/* Figure out the maximal width of access to perform, up to the bitness of the target */
const uint8_t access_width = riscv_mem_access_width(hart, src, len);
const uint8_t access_length = 1U << access_width;
/* Build the access command */
Expand Down

0 comments on commit 9b200e7

Please sign in to comment.