Merge pull request #113 from stffrdhrn/litex-trivial

Litex trivial
This commit is contained in:
enjoy-digital 2018-10-04 16:25:11 +02:00 committed by GitHub
commit 9cf4ffb3f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ static void set_last_error(const char *s)
if (!s)
s = "NULL error";
last_err_set = 1;
strncpy(last_err, s, ERR_MAX_SIZE);
strncpy(last_err, s, ERR_MAX_SIZE-1);
}
static dylib_ref dylib_ref_alloc (void *handle, const char *path)

View File

@ -384,7 +384,7 @@ class SoCCore(Module):
def soc_core_args(parser):
parser.add_argument("--cpu-type", default=None,
help="select CPU: lm32, mor1kx, picorv32, vexriscv, minerva")
help="select CPU: lm32, or1k, picorv32, vexriscv, minerva")
parser.add_argument("--cpu-variant", default=None,
help="select CPU variant")
parser.add_argument("--integrated-rom-size", default=None, type=int,

View File

@ -25,7 +25,7 @@ static void emerg_printf(const char *fmt, ...)
}
}
static char emerg_getc()
static char emerg_getc(void)
{
while(uart_rxempty_read());
char c = uart_rxtx_read();