-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Semi-functional -- it can run Das U-Boot! Signed-off-by: Mike Frysinger <[email protected]>
- Loading branch information
Showing
13 changed files
with
342 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Default configuration for arm-softmmu | ||
|
||
CONFIG_NAND=y | ||
CONFIG_ECC=y | ||
CONFIG_SERIAL=y | ||
CONFIG_SD=y | ||
CONFIG_SSI_SD=y | ||
CONFIG_SMC91C111=y | ||
CONFIG_PFLASH_CFI01=y | ||
CONFIG_PFLASH_CFI02=y | ||
CONFIG_SSI=y | ||
CONFIG_SSI_M25P80=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TARGET_ARCH=bfin | ||
TARGET_ALIGNED_ONLY=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <stdbool.h> | ||
static inline bool cec_is_supervisor_mode(CPUBfinState *env) | ||
{ | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Blackfin cpu save/load logic | ||
* | ||
* Copyright 2007-2023 Mike Frysinger | ||
* Copyright 2007-2011 Analog Devices, Inc. | ||
* | ||
* Licensed under the Lesser GPL 2 or later. | ||
*/ | ||
|
||
#include "qemu/osdep.h" | ||
#include "cpu.h" | ||
#include "hw/hw.h" | ||
#include "hw/boards.h" | ||
#include "migration/cpu.h" | ||
|
||
#define VMSTATE_AUTO32_ARRAY(member) \ | ||
VMSTATE_UINT32_ARRAY(member, CPUArchState, ARRAY_SIZE(((CPUArchState *)NULL)->member)) | ||
#define VMSTATE_AUTO64_ARRAY(member) \ | ||
VMSTATE_UINT64_ARRAY(member, CPUArchState, ARRAY_SIZE(((CPUArchState *)NULL)->member)) | ||
#define _VMSTATE_UINT32(member) \ | ||
VMSTATE_UINT32(member, CPUArchState) | ||
const VMStateDescription vmstate_bfin_cpu = { | ||
.name = "cpu", | ||
.version_id = 1, | ||
.minimum_version_id = 1, | ||
.fields = (VMStateField[]) { | ||
VMSTATE_AUTO32_ARRAY(dreg), | ||
VMSTATE_AUTO32_ARRAY(preg), | ||
VMSTATE_AUTO32_ARRAY(ireg), | ||
VMSTATE_AUTO32_ARRAY(mreg), | ||
VMSTATE_AUTO32_ARRAY(breg), | ||
VMSTATE_AUTO32_ARRAY(lreg), | ||
VMSTATE_AUTO64_ARRAY(areg), | ||
_VMSTATE_UINT32(rets), | ||
VMSTATE_AUTO32_ARRAY(lcreg), | ||
VMSTATE_AUTO32_ARRAY(ltreg), | ||
VMSTATE_AUTO32_ARRAY(lbreg), | ||
VMSTATE_AUTO32_ARRAY(cycles), | ||
_VMSTATE_UINT32(uspreg), | ||
_VMSTATE_UINT32(seqstat), | ||
_VMSTATE_UINT32(syscfg), | ||
_VMSTATE_UINT32(reti), | ||
_VMSTATE_UINT32(retx), | ||
_VMSTATE_UINT32(retn), | ||
_VMSTATE_UINT32(rete), | ||
_VMSTATE_UINT32(emudat), | ||
_VMSTATE_UINT32(pc), | ||
VMSTATE_AUTO32_ARRAY(astat), | ||
_VMSTATE_UINT32(astat_op), | ||
VMSTATE_AUTO32_ARRAY(astat_arg), | ||
VMSTATE_END_OF_LIST() | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.