sim.c (82de978a8b01c37e57a4782012b88ce89e0fa4f6) | sim.c (9bca0edb282de0007a4f068d9d20f3e3c3aadef7) |
---|---|
1/* 2 * Copyright (c) 2011, Max Filippov, Open Source and Linux Lab. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * * Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 76 unchanged lines hidden (view full) --- 85 xtensa_create_memory_regions(&env->config->dataram, "xtensa.dataram", 86 get_system_memory()); 87 xtensa_create_memory_regions(&env->config->sysrom, "xtensa.sysrom", 88 get_system_memory()); 89 xtensa_create_memory_regions(&sysram, "xtensa.sysram", 90 get_system_memory()); 91 } 92 | 1/* 2 * Copyright (c) 2011, Max Filippov, Open Source and Linux Lab. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * * Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 76 unchanged lines hidden (view full) --- 85 xtensa_create_memory_regions(&env->config->dataram, "xtensa.dataram", 86 get_system_memory()); 87 xtensa_create_memory_regions(&env->config->sysrom, "xtensa.sysrom", 88 get_system_memory()); 89 xtensa_create_memory_regions(&sysram, "xtensa.sysram", 90 get_system_memory()); 91 } 92 |
93 if (serial_hds[0]) { 94 xtensa_sim_open_console(serial_hds[0]); | 93 if (serial_hd(0)) { 94 xtensa_sim_open_console(serial_hd(0)); |
95 } 96 if (kernel_filename) { 97 uint64_t elf_entry; 98 uint64_t elf_lowaddr; 99#ifdef TARGET_WORDS_BIGENDIAN 100 int success = load_elf(kernel_filename, translate_phys_addr, cpu, 101 &elf_entry, &elf_lowaddr, NULL, 1, EM_XTENSA, 0, 0); 102#else --- 20 unchanged lines hidden --- | 95 } 96 if (kernel_filename) { 97 uint64_t elf_entry; 98 uint64_t elf_lowaddr; 99#ifdef TARGET_WORDS_BIGENDIAN 100 int success = load_elf(kernel_filename, translate_phys_addr, cpu, 101 &elf_entry, &elf_lowaddr, NULL, 1, EM_XTENSA, 0, 0); 102#else --- 20 unchanged lines hidden --- |