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