target: quark_x10xx: adding missing 'static' keyword
[fw/openocd] / src / target / quark_x10xx.c
index 05818b7c109e9b329f3f278a5808347bd8e00db5..b9a7c1656c3b8d07ea7a937f418790b86f05a3bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright(c) 2013 Intel Corporation.
+ * Copyright(c) 2013-2016 Intel Corporation.
  *
  * Adrian Burns (adrian.burns@intel.com)
  * Thomas Faust (thomas.faust@intel.com)
@@ -8,8 +8,9 @@
  * Jeffrey Maxwell (jeffrey.r.maxwell@intel.com)
  *
  * This program is free software; you can redistribute it and/or modify
- * it under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -17,8 +18,7 @@
  * General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  * Contact Information:
  * Intel Corporation
@@ -51,7 +51,7 @@
 #include "lakemont.h"
 #include "x86_32_common.h"
 
-int quark_x10xx_target_create(struct target *t, Jim_Interp *interp)
+static int quark_x10xx_target_create(struct target *t, Jim_Interp *interp)
 {
        struct x86_32_common *x86_32 = calloc(1, sizeof(struct x86_32_common));
        if (x86_32 == NULL) {
@@ -60,10 +60,12 @@ int quark_x10xx_target_create(struct target *t, Jim_Interp *interp)
        }
        x86_32_common_init_arch_info(t, x86_32);
        lakemont_init_arch_info(t, x86_32);
+       x86_32->core_type = LMT1;
        return ERROR_OK;
 }
 
-int quark_x10xx_init_target(struct command_context *cmd_ctx, struct target *t)
+static int quark_x10xx_init_target(struct command_context *cmd_ctx,
+               struct target *t)
 {
        return lakemont_init_target(cmd_ctx, t);
 }