Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
whitequark committed Sep 29, 2016
1 parent 04481ea commit 6d46070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misoc/integration/cpu_interface.py
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ def _get_rw_functions_rs(reg_name, reg_base, nwords, busword, read_only):

r += " #[inline(always)]\n"
r += " pub unsafe fn "+reg_name+"_read() -> "+rstype+" {\n"
if size > 1:
if nwords > 1:
r += " let r = read_volatile("+rsname+") as "+rstype+";\n"
for word in range(1, nwords):
r += " let r = r << "+str(busword)+" | " + \

0 comments on commit 6d46070

Please sign in to comment.