aboutsummaryrefslogtreecommitdiff
path: root/hw/arm_boot.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-06-23 17:53:48 +0200
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-04 21:58:25 +0200
commit462a8bc6468912b79629f20f18798558342ce315 (patch)
treeebfadf060ddb6b47b9e1e17a24a85b666fd779e1 /hw/arm_boot.c
parent75ef849696830fc2ddeff8bb90eea5887ff50df6 (diff)
downloadqemu-462a8bc6468912b79629f20f18798558342ce315.zip
qemu-462a8bc6468912b79629f20f18798558342ce315.tar.gz
qemu-462a8bc6468912b79629f20f18798558342ce315.tar.bz2
arm: Add const attribute to some arm_boot_info pointers
Parameter 'info' is const, so add the missing attribute. v2: Add 'const' to the local variable info in do_cpu_reset() and to the boot_info field in CPUARMState (suggested by Peter Maydell). Cc: Andrzej Zaborowski <balrogg@gmail.com> Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/arm_boot.c')
-rw-r--r--hw/arm_boot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/arm_boot.c b/hw/arm_boot.c
index bfac982..e021576 100644
--- a/hw/arm_boot.c
+++ b/hw/arm_boot.c
@@ -49,7 +49,7 @@ static uint32_t smpboot[] = {
p += 4; \
} while (0)
-static void set_kernel_args(struct arm_boot_info *info,
+static void set_kernel_args(const struct arm_boot_info *info,
int initrd_size, target_phys_addr_t base)
{
target_phys_addr_t p;
@@ -102,7 +102,7 @@ static void set_kernel_args(struct arm_boot_info *info,
WRITE_WORD(p, 0);
}
-static void set_kernel_args_old(struct arm_boot_info *info,
+static void set_kernel_args_old(const struct arm_boot_info *info,
int initrd_size, target_phys_addr_t base)
{
target_phys_addr_t p;
@@ -178,7 +178,7 @@ static void set_kernel_args_old(struct arm_boot_info *info,
static void do_cpu_reset(void *opaque)
{
CPUState *env = opaque;
- struct arm_boot_info *info = env->boot_info;
+ const struct arm_boot_info *info = env->boot_info;
cpu_reset(env);
if (info) {