18c48e365SSimon Safar /* 28c48e365SSimon Safar * Copyright (c) 2022, Simon Safar, Max Filippov, Open Source and Linux Lab. 38c48e365SSimon Safar * All rights reserved. 48c48e365SSimon Safar * 58c48e365SSimon Safar * Redistribution and use in source and binary forms, with or without 68c48e365SSimon Safar * modification, are permitted provided that the following conditions are met: 78c48e365SSimon Safar * * Redistributions of source code must retain the above copyright 88c48e365SSimon Safar * notice, this list of conditions and the following disclaimer. 98c48e365SSimon Safar * * Redistributions in binary form must reproduce the above copyright 108c48e365SSimon Safar * notice, this list of conditions and the following disclaimer in the 118c48e365SSimon Safar * documentation and/or other materials provided with the distribution. 128c48e365SSimon Safar * * Neither the name of the Open Source and Linux Lab nor the 138c48e365SSimon Safar * names of its contributors may be used to endorse or promote products 148c48e365SSimon Safar * derived from this software without specific prior written permission. 158c48e365SSimon Safar * 168c48e365SSimon Safar * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 178c48e365SSimon Safar * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 188c48e365SSimon Safar * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 198c48e365SSimon Safar * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 208c48e365SSimon Safar * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 218c48e365SSimon Safar * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 228c48e365SSimon Safar * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 238c48e365SSimon Safar * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 248c48e365SSimon Safar * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 258c48e365SSimon Safar * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 268c48e365SSimon Safar */ 278c48e365SSimon Safar 288c48e365SSimon Safar #include "qemu/osdep.h" 298c48e365SSimon Safar #include "cpu.h" 30*4ea5fe99SAlex Bennée #include "gdbstub/helpers.h" 318c48e365SSimon Safar #include "qemu/host-utils.h" 328c48e365SSimon Safar 338c48e365SSimon Safar #include "core-lx106/core-isa.h" 348c48e365SSimon Safar #include "overlay_tool.h" 358c48e365SSimon Safar 368c48e365SSimon Safar #define xtensa_modules xtensa_modules_lx106 378c48e365SSimon Safar #include "core-lx106/xtensa-modules.c.inc" 388c48e365SSimon Safar 398c48e365SSimon Safar static XtensaConfig lx106 __attribute__((unused)) = { 408c48e365SSimon Safar .name = "lx106", 418c48e365SSimon Safar .gdb_regmap = { 428c48e365SSimon Safar .reg = { 438c48e365SSimon Safar #include "core-lx106/gdb-config.c.inc" 448c48e365SSimon Safar } 458c48e365SSimon Safar }, 468c48e365SSimon Safar .isa_internal = &xtensa_modules, 478c48e365SSimon Safar .clock_freq_khz = 40000, 488c48e365SSimon Safar DEFAULT_SECTIONS 498c48e365SSimon Safar }; 508c48e365SSimon Safar 518c48e365SSimon Safar REGISTER_CORE(lx106) 52