NetBSD Problem Report #52260

From  Mon May 29 00:57:07 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 9B3E77A104
	for <>; Mon, 29 May 2017 00:57:07 +0000 (UTC)
Message-Id: <>
Date: Mon, 29 May 2017 00:57:06 +0000 (UTC)
Subject: SuperH needs a way to sync instruction cache
X-Send-Pr-Version: www-1.0

>Number:         52260
>Category:       port-sh3
>Synopsis:       SuperH needs a way to sync instruction cache
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sh3-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 29 01:00:00 +0000 2017
>Last-Modified:  Mon May 29 01:01:36 +0000 2017
>Originator:     Valery Ushakov
>Release:        NetBSD-current
NetBSD felix 7.99.75 NetBSD 7.99.75 (FELIX) #1: Mon May 29 02:36:09 MSK 2017  uwe@sampo:/home/uwe/work/netbsd/cvs/src/sys/arch/landisk/compile/FELIX landisk

As far as I can tell there's no way for userland code to sync
instruction cache, which is necessary for self-modifying code.
Cf. ARM's ARM_SYNC_ICACHE sysarch(2) syscall and its arm_sync_icache()

NetBSD/sh3 currently doesn't provide any architecture-dependent system

Stumbled into this when testing a forth I wrote with the Forth 2012
test suite that prods the system just right to make icache problem




NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.