Immediately after reset (before the pincfg has been set by the startup code a Synergy project), the IO ports are in the states defined in the HW manual, see Table 20.8 "Register Settings for I/O pin functions on Port 1" in the S7G2 HW manual. P1_09 is TDI/SWO and P1_10 is TDI.
Then in the startup code of the project, the pincfg table will be used to configure the IO Ports to the configuration set for the project.
It is possible also to reconfigure a pin to a different function during runtime, using the IOPORT API, e.g. :-
g_ioport.p_api->pinCfg(IOPORT_PORT_01_PIN_09, IOPORT_CFG_PERIPHERAL_PIN | IOPORT_PERIPHERAL_DEBUG);
g_ioport.p_api->pinCfg(IOPORT_PORT_01_PIN_10, IOPORT_CFG_PERIPHERAL_PIN | IOPORT_PERIPHERAL_DEBUG);