xref: /qemu/target/xtensa/core-lx106.c (revision 8c48e36548a124dff8ad25b28f9cd2210dcdc407)
1*8c48e365SSimon Safar /*
2*8c48e365SSimon Safar  * Copyright (c) 2022, Simon Safar, Max Filippov, Open Source and Linux Lab.
3*8c48e365SSimon Safar  * All rights reserved.
4*8c48e365SSimon Safar  *
5*8c48e365SSimon Safar  * Redistribution and use in source and binary forms, with or without
6*8c48e365SSimon Safar  * modification, are permitted provided that the following conditions are met:
7*8c48e365SSimon Safar  *     * Redistributions of source code must retain the above copyright
8*8c48e365SSimon Safar  *       notice, this list of conditions and the following disclaimer.
9*8c48e365SSimon Safar  *     * Redistributions in binary form must reproduce the above copyright
10*8c48e365SSimon Safar  *       notice, this list of conditions and the following disclaimer in the
11*8c48e365SSimon Safar  *       documentation and/or other materials provided with the distribution.
12*8c48e365SSimon Safar  *     * Neither the name of the Open Source and Linux Lab nor the
13*8c48e365SSimon Safar  *       names of its contributors may be used to endorse or promote products
14*8c48e365SSimon Safar  *       derived from this software without specific prior written permission.
15*8c48e365SSimon Safar  *
16*8c48e365SSimon Safar  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17*8c48e365SSimon Safar  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*8c48e365SSimon Safar  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*8c48e365SSimon Safar  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20*8c48e365SSimon Safar  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21*8c48e365SSimon Safar  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22*8c48e365SSimon Safar  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23*8c48e365SSimon Safar  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24*8c48e365SSimon Safar  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25*8c48e365SSimon Safar  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*8c48e365SSimon Safar  */
27*8c48e365SSimon Safar 
28*8c48e365SSimon Safar #include "qemu/osdep.h"
29*8c48e365SSimon Safar #include "cpu.h"
30*8c48e365SSimon Safar #include "exec/gdbstub.h"
31*8c48e365SSimon Safar #include "qemu/host-utils.h"
32*8c48e365SSimon Safar 
33*8c48e365SSimon Safar #include "core-lx106/core-isa.h"
34*8c48e365SSimon Safar #include "overlay_tool.h"
35*8c48e365SSimon Safar 
36*8c48e365SSimon Safar #define xtensa_modules xtensa_modules_lx106
37*8c48e365SSimon Safar #include "core-lx106/xtensa-modules.c.inc"
38*8c48e365SSimon Safar 
39*8c48e365SSimon Safar static XtensaConfig lx106 __attribute__((unused)) = {
40*8c48e365SSimon Safar     .name = "lx106",
41*8c48e365SSimon Safar     .gdb_regmap = {
42*8c48e365SSimon Safar         .reg = {
43*8c48e365SSimon Safar #include "core-lx106/gdb-config.c.inc"
44*8c48e365SSimon Safar         }
45*8c48e365SSimon Safar     },
46*8c48e365SSimon Safar     .isa_internal = &xtensa_modules,
47*8c48e365SSimon Safar     .clock_freq_khz = 40000,
48*8c48e365SSimon Safar     DEFAULT_SECTIONS
49*8c48e365SSimon Safar };
50*8c48e365SSimon Safar 
51*8c48e365SSimon Safar REGISTER_CORE(lx106)
52