Skip to content

Commit

Permalink
Pass ELF Data
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jan 30, 2024
1 parent 9d7a708 commit 7c06787
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jsemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,13 @@ static void init_vm_drive(void *arg);

void vm_start(const char *url, int ram_size, const char *cmdline,
const char *pwd, int width, int height, BOOL has_network,
const char *drive_url, const char *elf_data)
const char *drive_url, const char *elf_data, int elf_len)
{
//// Begin Test
printf("elf_data=%s\n", elf_data);
printf("elf_len=%d\n", elf_len);
for (int i = 0; i < elf_len; i++) {
printf("elf_data[%d]=0x%x\n", i, elf_data[i]);
}
//// End Test

VMStartState *s;
Expand Down

0 comments on commit 7c06787

Please sign in to comment.