sim: hw: mark hw_descriptors const
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 7f24024..9be682e 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -428,7 +428,7 @@
 	sim_hw="$(SIM_HW_DEVICES)" ; \
 	echo "/* generated by Makefile */" ; \
 	printf "extern const struct hw_descriptor dv_%s_descriptor[];\n" $$sim_hw ; \
-	echo "const struct hw_descriptor *hw_descriptors[] = {" ; \
+	echo "const struct hw_descriptor * const hw_descriptors[] = {" ; \
 	printf "  dv_%s_descriptor,\n" $$sim_hw ; \
 	echo "  NULL," ; \
 	echo "};" \
diff --git a/sim/common/hw-base.c b/sim/common/hw-base.c
index af4cc50..dee9359 100644
--- a/sim/common/hw-base.c
+++ b/sim/common/hw-base.c
@@ -385,7 +385,7 @@
 
   /* locate a descriptor */
   {
-    const struct hw_descriptor **table;
+    const struct hw_descriptor * const *table;
     for (table = hw_descriptors;
 	 *table != NULL;
 	 table++)