mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 07:21:54 +00:00
zephyr: add module.yml and fix riscv compile error (#763)
This commit is contained in:
parent
7be0d385a6
commit
1ad76f489b
|
@ -77,7 +77,7 @@ rv_set_val(uint16 *addr, uint32 val)
|
||||||
*addr = (val & 0xffff);
|
*addr = (val & 0xffff);
|
||||||
*(addr + 1) = (val >> 16);
|
*(addr + 1) = (val >> 16);
|
||||||
|
|
||||||
asm volatile("fence.i");
|
__asm__ volatile("fence.i");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a val to given address */
|
/* Add a val to given address */
|
||||||
|
|
|
@ -153,7 +153,7 @@ get_target_symbol_map(uint32 *sym_num)
|
||||||
void
|
void
|
||||||
get_current_target(char *target_buf, uint32 target_buf_size)
|
get_current_target(char *target_buf, uint32 target_buf_size)
|
||||||
{
|
{
|
||||||
const char * s = BUILD_TARGET;
|
const char *s = BUILD_TARGET;
|
||||||
size_t s_size = sizeof(BUILD_TARGET);
|
size_t s_size = sizeof(BUILD_TARGET);
|
||||||
char *d = target_buf;
|
char *d = target_buf;
|
||||||
|
|
||||||
|
|
5
zephyr/module.yml
Normal file
5
zephyr/module.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
name: wasm-micro-runtime
|
||||||
|
|
||||||
|
build:
|
||||||
|
cmake-ext: True
|
||||||
|
kconfig-ext: True
|
Loading…
Reference in New Issue
Block a user