Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: nigel@mips.com, ralf@linux-mips.org, dan@debian.org,
	macro@linux-mips.org, linux-mips@linux-mips.org
Subject: Re: [PATCH] fast path for rdhwr emulation for TLS
Date: Mon, 11 Sep 2006 10:49:05 +0100	[thread overview]
Message-ID: <20060911094905.GB13414@networkno.de> (raw)
In-Reply-To: <20060911.175029.37531637.nemoto@toshiba-tops.co.jp>

Atsushi Nemoto wrote:
[snip]
> @@ -375,6 +376,72 @@ #endif
>  	BUILD_HANDLER dsp dsp sti silent		/* #26 */
>  	BUILD_HANDLER reserved reserved sti verbose	/* others */
>  
> +	.align	5
> +	LEAF(handle_ri_rdhwr_vivt)
> +#ifdef CONFIG_MIPS_MT_SMTC
> +	PANIC_PIC("handle_ri_rdhwr_vivt called")
> +#else
> +	.set	push
> +	.set	noat
> +	.set	noreorder
> +	/* check if TLB contains a entry for EPC */
> +	MFC0	k1, CP0_ENTRYHI
> +	andi	k1, 0xff	/* ASID_MASK */
> +	MFC0	k0, CP0_EPC
> +	PTR_SRL	k0, PAGE_SHIFT + 1
> +	PTR_SLL	k0, PAGE_SHIFT + 1
> +	or	k1, k0
> +	MTC0	k1, CP0_ENTRYHI
> +	mtc0_tlbw_hazard
> +	tlbp

This needs a .set mips3/.set mips0 pair.

> +#ifdef CONFIG_CPU_MIPSR2
> +	_ehb			/* tlb_probe_hazard */
> +#else
> +	nop; nop; nop; nop; nop; nop	/* tlb_probe_hazard */
> +#endif

What about a mtc0_tlbp_hazard macro here?


Thiemo

  reply	other threads:[~2006-09-11 10:38 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-07 15:00 [PATCH] fast path for rdhwr emulation for TLS Atsushi Nemoto
2006-07-07 15:22 ` Maciej W. Rozycki
2006-07-07 16:12   ` Atsushi Nemoto
2006-07-07 16:43     ` Atsushi Nemoto
2006-07-07 17:04       ` Maciej W. Rozycki
2006-07-07 18:22       ` Ralf Baechle
2006-07-07 16:58     ` Maciej W. Rozycki
2006-07-08 16:12       ` Atsushi Nemoto
2006-07-10 14:40         ` Atsushi Nemoto
2006-09-14 17:28           ` Ralf Baechle
2006-09-15  3:09             ` Atsushi Nemoto
2006-07-10 14:55       ` Atsushi Nemoto
2006-07-11  2:53         ` Daniel Jacobowitz
2006-07-11  3:20           ` Atsushi Nemoto
2006-09-08 17:39             ` Nigel Stephens
2006-09-09 13:56               ` Atsushi Nemoto
2006-09-10 22:30                 ` Nigel Stephens
2006-09-11  5:04                   ` Atsushi Nemoto
2006-09-11  8:50                     ` Atsushi Nemoto
2006-09-11  9:49                       ` Thiemo Seufer [this message]
2006-09-11 14:13                         ` Atsushi Nemoto
2006-09-11 15:17                           ` Thiemo Seufer
2006-09-11 13:09                 ` Maciej W. Rozycki
2006-09-11 14:30                   ` Atsushi Nemoto
2006-09-11 17:53                     ` Maciej W. Rozycki
2006-09-12  1:55                       ` Atsushi Nemoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060911094905.GB13414@networkno.de \
    --to=ths@networkno.de \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=dan@debian.org \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@linux-mips.org \
    --cc=nigel@mips.com \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox