On Thu, Feb 18, 2016 at 10:58 AM, Hollis Blanchard
wrote:
> On 02/18/2016 10:49 AM, Alistair Francis wrote:
>>
>> On Thu, Feb 18, 2016 at 10:23 AM, Hollis Blanchard
>> wrote:
>>>
>>> On 02/17/2016 01:04 PM, Alistair Francis wrote:
+static void generic_loader_reset(DeviceState *dev)
On 02/18/2016 10:49 AM, Alistair Francis wrote:
On Thu, Feb 18, 2016 at 10:23 AM, Hollis Blanchard
wrote:
On 02/17/2016 01:04 PM, Alistair Francis wrote:
+static void generic_loader_reset(DeviceState *dev)
+{
+GenericLoaderState *s = GENERIC_LOADER(dev);
+
+if (s->cpu) {
+CPUCl
On Thu, Feb 18, 2016 at 10:23 AM, Hollis Blanchard
wrote:
> On 02/17/2016 01:04 PM, Alistair Francis wrote:
>>
>> +static void generic_loader_reset(DeviceState *dev)
>> +{
>> +GenericLoaderState *s = GENERIC_LOADER(dev);
>> +
>> +if (s->cpu) {
>> +CPUClass *cc = CPU_GET_CLASS(s->cp
On 02/17/2016 01:04 PM, Alistair Francis wrote:
+static void generic_loader_reset(DeviceState *dev)
+{
+GenericLoaderState *s = GENERIC_LOADER(dev);
+
+if (s->cpu) {
+CPUClass *cc = CPU_GET_CLASS(s->cpu);
+cpu_reset(s->cpu);
+cc->set_pc(s->cpu, s->addr);
+}
+
+
On Wed, Feb 17, 2016 at 4:11 PM, Eric Blake wrote:
> On 02/17/2016 05:03 PM, Alistair Francis wrote:
>
+++ b/hw/misc/generic-loader.c
@@ -0,0 +1,127 @@
+/*
+ * Generic Loader
+ *
+ * Copyright (C) 2014 Li Guang
+ * Written by Li Guang
>>>
>>> Want to claim 2016?
On 02/17/2016 05:03 PM, Alistair Francis wrote:
>>> +++ b/hw/misc/generic-loader.c
>>> @@ -0,0 +1,127 @@
>>> +/*
>>> + * Generic Loader
>>> + *
>>> + * Copyright (C) 2014 Li Guang
>>> + * Written by Li Guang
>>
>> Want to claim 2016?
>
> Yep, I can do that. I'm never too sure when this can be ch
On Wed, Feb 17, 2016 at 1:41 PM, Eric Blake wrote:
> On 02/17/2016 02:04 PM, Alistair Francis wrote:
>> Add a generic loader to QEMU which can be used to load images or set
>> memory values.
>>
>> This only supports ARM architectures at the moment.
>>
>> Signed-off-by: Alistair Francis
>> ---
>>
On 02/17/2016 02:04 PM, Alistair Francis wrote:
> Add a generic loader to QEMU which can be used to load images or set
> memory values.
>
> This only supports ARM architectures at the moment.
>
> Signed-off-by: Alistair Francis
> ---
> Changes since RFC:
> - Add BE support
>
> hw/misc/generi
Add a generic loader to QEMU which can be used to load images or set
memory values.
This only supports ARM architectures at the moment.
Signed-off-by: Alistair Francis
---
Changes since RFC:
- Add BE support
default-configs/arm-softmmu.mak | 1 +
hw/misc/Makefile.objs| 2 +
h