diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-15 21:45:48 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-15 21:45:48 +0300 |
| commit | 941b018bafdaa0d31a30b89959e717fd780b7db1 (patch) | |
| tree | 91030508a45705e8df8e02c99feec94b3808093e /src/components | |
| parent | 40cd4e6e250c6a32a3072bca40248bd4b8ef9a24 (diff) | |
| download | gran-941b018bafdaa0d31a30b89959e717fd780b7db1.tar.gz gran-941b018bafdaa0d31a30b89959e717fd780b7db1.zip | |
format
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/cpu/riscv/simple_riscv32.c | 3 | ||||
| -rw-r--r-- | src/components/mem/simple_mem.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/cpu/riscv/simple_riscv32.c b/src/components/cpu/riscv/simple_riscv32.c index b000bb1..51b2a42 100644 --- a/src/components/cpu/riscv/simple_riscv32.c +++ b/src/components/cpu/riscv/simple_riscv32.c @@ -482,7 +482,8 @@ static stat simple_riscv32_clock(struct simple_riscv32 *cpu) } if (!cpu->ils.pkt) { - cpu->ils.pkt = create_packet(PACKET_READ, cpu->pc, sizeof(uint32_t)); + cpu->ils.pkt = + create_packet(PACKET_READ, cpu->pc, sizeof(uint32_t)); if (!cpu->ils.pkt) return EMEM; diff --git a/src/components/mem/simple_mem.c b/src/components/mem/simple_mem.c index 80bddf3..bb9dd40 100644 --- a/src/components/mem/simple_mem.c +++ b/src/components/mem/simple_mem.c @@ -50,7 +50,8 @@ struct component *create_simple_mem(size_t size) return (struct component *)new; } -void init_simple_mem(struct component *m, uintptr_t addr, size_t size, void *data) +void init_simple_mem(struct component *m, uintptr_t addr, size_t size, + void *data) { struct simple_mem *mem = (struct simple_mem *)m; memcpy(mem->buf + addr, data, size); |
