Fixed g++ with Vortex, _start stil not initializing propoerly

This commit is contained in:
fares
2019-11-16 14:35:45 -05:00
parent 19dba43849
commit d5763a8ae7
13 changed files with 32773 additions and 200846 deletions

View File

@@ -1,5 +1,5 @@
COMP = ~/dev/riscv-gnu-toolchain/drops/bin/riscv32-unknown-elf-gcc
COMP = ~/dev/riscv-gnu-toolchain/drops/bin/riscv32-unknown-elf-g++
# CC_FLAGS = -march=rv32im -mabi=ilp32 -O0 -Wl,-Bstatic,-T,linker.ld -ffreestanding -nostdlib
CC_FLAGS = -march=rv32im -mabi=ilp32 -O0 -Wl,-Bstatic,-T,linker.ld -ffreestanding -nostartfiles -nostdlib
@@ -7,7 +7,7 @@ DMP = ~/dev/riscv-gnu-toolchain/drops/bin/riscv32-unknown-elf-objdump
CPY = ~/dev/riscv-gnu-toolchain/drops/bin/riscv32-unknown-elf-objcopy
NEWLIB = ../../newlib/newlib.c ../../newlib/newlib_notimp.c ../../newlib/newlib.s
NEWLIB = ../../newlib/newlib.c
VX_STR = ../../startup/vx_start.s
VX_INT = ../../intrinsics/vx_intrinsics.s
VX_IO = ../../io/vx_io.s ../../io/vx_io.c

View File

@@ -54,6 +54,10 @@ typedef struct {
static int g_num_kernels = 0;
static kernel_info_t g_kernels [MAX_KERNELS];
#ifdef __cplusplus
extern "C" {
#endif
int _pocl_register_kernel(const char* name, const void* pfn, uint32_t num_args, uint32_t num_locals, const uint8_t* arg_types, const uint32_t* local_sizes) {
printf("******** _pocl_register_kernel\n");
printf("Name to register: %s\n", name);
@@ -100,6 +104,10 @@ int _pocl_query_kernel(const char* name, const void** p_pfn, uint32_t* p_num_arg
return -1;
}
#ifdef __cplusplus
}
#endif
int exitcode = 0;
cl_context context = NULL;
cl_command_queue commandQueue = NULL;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff