|
Packit |
b1f7ae |
; Copyright (c) 2016-2017, Intel Corporation
|
|
Packit |
b1f7ae |
;
|
|
Packit |
b1f7ae |
; Redistribution and use in source and binary forms, with or without
|
|
Packit |
b1f7ae |
; modification, are permitted provided that the following conditions are met:
|
|
Packit |
b1f7ae |
;
|
|
Packit |
b1f7ae |
; * Redistributions of source code must retain the above copyright notice,
|
|
Packit |
b1f7ae |
; this list of conditions and the following disclaimer.
|
|
Packit |
b1f7ae |
; * Redistributions in binary form must reproduce the above copyright notice,
|
|
Packit |
b1f7ae |
; this list of conditions and the following disclaimer in the documentation
|
|
Packit |
b1f7ae |
; and/or other materials provided with the distribution.
|
|
Packit |
b1f7ae |
; * Neither the name of Intel Corporation nor the names of its contributors
|
|
Packit |
b1f7ae |
; may be used to endorse or promote products derived from this software
|
|
Packit |
b1f7ae |
; without specific prior written permission.
|
|
Packit |
b1f7ae |
;
|
|
Packit |
b1f7ae |
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
Packit |
b1f7ae |
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit |
b1f7ae |
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
Packit |
b1f7ae |
; ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
Packit |
b1f7ae |
; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
Packit |
b1f7ae |
; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
Packit |
b1f7ae |
; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
Packit |
b1f7ae |
; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
Packit |
b1f7ae |
; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
Packit |
b1f7ae |
; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
Packit |
b1f7ae |
; POSSIBILITY OF SUCH DAMAGE.
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
; Test the end-on-call block decoder option.
|
|
Packit |
b1f7ae |
;
|
|
Packit |
b1f7ae |
; Variant: there's a disable event after the call.
|
|
Packit |
b1f7ae |
;
|
|
Packit |
b1f7ae |
; opt:ptxed --block-decoder --block:show-blocks --block:end-on-call
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
org 0x1000
|
|
Packit |
b1f7ae |
bits 64
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
; @pt p0: psb()
|
|
Packit |
b1f7ae |
; @pt p1: mode.exec(64bit)
|
|
Packit |
b1f7ae |
; @pt p2: fup(3: %l0)
|
|
Packit |
b1f7ae |
; @pt p3: psbend()
|
|
Packit |
b1f7ae |
l0: nop
|
|
Packit |
b1f7ae |
l1: call l3
|
|
Packit |
b1f7ae |
l2: hlt
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
l3: nop
|
|
Packit |
b1f7ae |
l4: ret
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
; @pt p4: tip.pgd(0: %l2)
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
; @pt .exp(ptdump)
|
|
Packit |
b1f7ae |
;%0p0 psb
|
|
Packit |
b1f7ae |
;%0p1 mode.exec cs.l
|
|
Packit |
b1f7ae |
;%0p2 fup 3: %?l0
|
|
Packit |
b1f7ae |
;%0p3 psbend
|
|
Packit |
b1f7ae |
;%0p4 tip.pgd 0: %?l2.0
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
|
|
Packit |
b1f7ae |
; @pt .exp(ptxed)
|
|
Packit |
b1f7ae |
;[block]
|
|
Packit |
b1f7ae |
;%0l0 # nop
|
|
Packit |
b1f7ae |
;%0l1 # call l3
|
|
Packit |
b1f7ae |
;[block]
|
|
Packit |
b1f7ae |
;%0l3 # nop
|
|
Packit |
b1f7ae |
;%0l4 # ret
|
|
Packit |
b1f7ae |
;[disabled]
|